Class: Ronin::Code::SQL::Literal

Inherits:
Object
  • Object
show all
Includes:
Emittable, Operators
Defined in:
lib/ronin/code/sql/literal.rb

Overview

Represents SQL literals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Emittable

#emitter, #inspect, #to_s, #to_sql

Methods included from Operators

#!, #!=, #%, #&, #*, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #and, #as, #glob, #in, #is, #is_not, #like, #match, #not, #or, #regexp, #|, #~

Constructor Details

#initialize(value) ⇒ Literal

Initializes the literal value.

Parameters:

  • value (String, Integer, Float, :NULL)

    The value for the literal.



48
49
50
# File 'lib/ronin/code/sql/literal.rb', line 48

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueString, ... (readonly)

The literal value.

Returns:

  • (String, Integer, Float, :NULL)


40
41
42
# File 'lib/ronin/code/sql/literal.rb', line 40

def value
  @value
end