Class: DB::Model::Statement::Clause
- Inherits:
-
Object
- Object
- DB::Model::Statement::Clause
- Defined in:
- lib/db/model/statement/clause.rb
Constant Summary collapse
- ANY =
self.new('*')
Instance Method Summary collapse
- #append_to(statement) ⇒ Object
-
#initialize(value) ⇒ Clause
constructor
A new instance of Clause.
Constructor Details
#initialize(value) ⇒ Clause
Returns a new instance of Clause.
27 28 29 |
# File 'lib/db/model/statement/clause.rb', line 27 def initialize(value) @value = value end |
Instance Method Details
#append_to(statement) ⇒ Object
31 32 33 |
# File 'lib/db/model/statement/clause.rb', line 31 def append_to(statement) statement.clause(@value) end |