Class: Ronin::Code::SQL::WhereClause
- Defined in:
- lib/ronin/code/sql/where_clause.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
Instance Method Summary collapse
- #emit ⇒ Object
-
#initialize(expr) ⇒ WhereClause
constructor
A new instance of WhereClause.
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
#expr ⇒ Object
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
#emit ⇒ Object
35 36 37 |
# File 'lib/ronin/code/sql/where_clause.rb', line 35 def emit emit_token('WHERE') + emit_value(@expr) end |