Class: Ronin::Code::SQL::HavingClause
- Defined in:
- lib/ronin/code/sql/having_clause.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
Expression of the having clause.
Instance Method Summary collapse
- #emit ⇒ Object
-
#initialize(expr) ⇒ HavingClause
constructor
Creates a new HavingClause object with the specified expr.
Constructor Details
#initialize(expr) ⇒ HavingClause
Creates a new HavingClause object with the specified expr.
35 36 37 |
# File 'lib/ronin/code/sql/having_clause.rb', line 35 def initialize(expr) @expr = expr end |
Instance Attribute Details
#expr ⇒ Object
Expression of the having clause
30 31 32 |
# File 'lib/ronin/code/sql/having_clause.rb', line 30 def expr @expr end |
Instance Method Details
#emit ⇒ Object
39 40 41 |
# File 'lib/ronin/code/sql/having_clause.rb', line 39 def emit emit_token('HAVING') + emit_value(@expr) end |