Class: OrientDB::SQL::LiteralExpression

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/orientdb/sql/common.rb

Instance Method Summary collapse

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_sObject



184
185
186
# File 'lib/orientdb/sql/common.rb', line 184

def to_s
  @value
end