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.



516
517
518
# File 'lib/sql-parser/statement.rb', line 516

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



520
521
522
# File 'lib/sql-parser/statement.rb', line 520

def value
  @value
end