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.



469
470
471
# File 'lib/sql-parser/statement.rb', line 469

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



473
474
475
# File 'lib/sql-parser/statement.rb', line 473

def value
  @value
end