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.



484
485
486
# File 'lib/sql-parser/statement.rb', line 484

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



488
489
490
# File 'lib/sql-parser/statement.rb', line 488

def value
  @value
end