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