Class: Ronin::Code::SQL::UnaryExpr

Inherits:
Object
  • Object
show all
Includes:
Emittable
Defined in:
lib/ronin/code/sql/unary_expr.rb

Overview

Represents a unary expression in SQL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Emittable

#emitter, #inspect, #to_s, #to_sql

Constructor Details

#initialize(operator, operand) ⇒ UnaryExpr

Initializes the unary expression.

Parameters:



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

#operandStatement, ... (readonly)

The unary operand.



43
44
45
# File 'lib/ronin/code/sql/unary_expr.rb', line 43

def operand
  @operand
end

#operatorSymbol (readonly)

The unary operator symbol.

Returns:

  • (Symbol)


38
39
40
# File 'lib/ronin/code/sql/unary_expr.rb', line 38

def operator
  @operator
end