Class: Ronin::Code::SQL::UnaryExpr
- Inherits:
-
Object
- Object
- Ronin::Code::SQL::UnaryExpr
- Includes:
- Emittable
- Defined in:
- lib/ronin/code/sql/unary_expr.rb
Overview
Represents a unary expression in SQL.
Instance Attribute Summary collapse
-
#operand ⇒ Statement, ...
readonly
The unary operand.
-
#operator ⇒ Symbol
readonly
The unary operator symbol.
Instance Method Summary collapse
-
#initialize(operator, operand) ⇒ UnaryExpr
constructor
Initializes the unary expression.
Methods included from Emittable
#emitter, #inspect, #to_s, #to_sql
Constructor Details
#initialize(operator, operand) ⇒ UnaryExpr
Initializes the unary expression.
52 53 54 55 |
# File 'lib/ronin/code/sql/unary_expr.rb', line 52 def initialize(operator,operand) @operator = operator @operand = operand end |
Instance Attribute Details
#operand ⇒ Statement, ... (readonly)
The unary operand.
43 44 45 |
# File 'lib/ronin/code/sql/unary_expr.rb', line 43 def operand @operand end |
#operator ⇒ Symbol (readonly)
The unary operator symbol.
38 39 40 |
# File 'lib/ronin/code/sql/unary_expr.rb', line 38 def operator @operator end |