Class: OrientDB::SQL::LiteralExpression
- Inherits:
-
Object
- Object
- OrientDB::SQL::LiteralExpression
- Includes:
- Comparable
- Defined in:
- lib/orientdb/sql/common.rb
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(value) ⇒ LiteralExpression
constructor
A new instance of LiteralExpression.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ LiteralExpression
Returns a new instance of LiteralExpression.
180 181 182 |
# File 'lib/orientdb/sql/common.rb', line 180 def initialize(value) @value = value.to_s end |
Instance Method Details
#<=>(other) ⇒ Object
190 191 192 |
# File 'lib/orientdb/sql/common.rb', line 190 def <=>(other) to_s <=> other.to_s end |
#to_s ⇒ Object
184 185 186 |
# File 'lib/orientdb/sql/common.rb', line 184 def to_s @value end |