Class: Ronin::Code::SQL::FromClause

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tableObject

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

#emitObject



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

def emit
  emit_token('FROM') + emit_value(@table)
end