Class: SQLParser::Statement::Unary

Inherits:
Node
  • Object
show all
Defined in:
lib/sql-parser/statement.rb

Direct Known Subclasses

Not, UnaryMinus, UnaryPlus

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(value) ⇒ Unary

Returns a new instance of Unary.



425
426
427
# File 'lib/sql-parser/statement.rb', line 425

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



429
430
431
# File 'lib/sql-parser/statement.rb', line 429

def value
  @value
end