Class: Ronin::Code::SQL::WhereClause

Inherits:
Clause
  • Object
show all
Defined in:
lib/ronin/code/sql/where_clause.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ WhereClause

Returns a new instance of WhereClause.



31
32
33
# File 'lib/ronin/code/sql/where_clause.rb', line 31

def initialize(expr)
  @expr = expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



29
30
31
# File 'lib/ronin/code/sql/where_clause.rb', line 29

def expr
  @expr
end

Instance Method Details

#emitObject



35
36
37
# File 'lib/ronin/code/sql/where_clause.rb', line 35

def emit
  emit_token('WHERE') + emit_value(@expr)
end