Class: Ronin::Code::SQL::Literal
- Inherits:
-
Object
- Object
- Ronin::Code::SQL::Literal
- Defined in:
- lib/ronin/code/sql/literal.rb
Overview
Represents SQL literals.
Instance Attribute Summary collapse
-
#value ⇒ String, ...
readonly
The literal value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
Initializes the literal value.
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.
48 49 50 |
# File 'lib/ronin/code/sql/literal.rb', line 48 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String, ... (readonly)
The literal value.
40 41 42 |
# File 'lib/ronin/code/sql/literal.rb', line 40 def value @value end |