Class: Ronin::Code::SQL::DropTable
- Defined in:
- lib/ronin/code/sql/drop_table.rb
Instance Attribute Summary
Attributes inherited from Statement
Instance Method Summary collapse
-
#initialize(dialect, table = nil, options = {}, &block) ⇒ DropTable
constructor
A new instance of DropTable.
- #table(name = nil) ⇒ Object
Methods inherited from Drop
Methods inherited from Statement
clause_order, clauses, #emit, #get_clause, #has_clause?, has_clause?
Methods inherited from Expr
Constructor Details
#initialize(dialect, table = nil, options = {}, &block) ⇒ DropTable
Returns a new instance of DropTable.
29 30 31 |
# File 'lib/ronin/code/sql/drop_table.rb', line 29 def initialize(dialect,table=nil,={},&block) super(dialect,'TABLE',table,,&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ronin::Code::SQL::Statement
Instance Method Details
#table(name = nil) ⇒ Object
33 34 35 36 |
# File 'lib/ronin/code/sql/drop_table.rb', line 33 def table(name=nil) @name = name if name return @name end |