Class: Ronin::Code::SQL::IntersectClause
- Defined in:
- lib/ronin/code/sql/intersect_clause.rb
Instance Attribute Summary collapse
-
#select ⇒ Object
Returns the value of attribute select.
Instance Method Summary collapse
- #emit ⇒ Object
-
#initialize(select) ⇒ IntersectClause
constructor
A new instance of IntersectClause.
Constructor Details
#initialize(select) ⇒ IntersectClause
Returns a new instance of IntersectClause.
31 32 33 |
# File 'lib/ronin/code/sql/intersect_clause.rb', line 31 def initialize(select) @select = select end |
Instance Attribute Details
#select ⇒ Object
Returns the value of attribute select.
29 30 31 |
# File 'lib/ronin/code/sql/intersect_clause.rb', line 29 def select @select end |
Instance Method Details
#emit ⇒ Object
35 36 37 |
# File 'lib/ronin/code/sql/intersect_clause.rb', line 35 def emit emit_token('INTERSECT') + @select.emit end |