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.
10 11 12 |
# File 'lib/db/model/statement/clause.rb', line 10 def initialize(value) @value = value end |
Instance Method Details
#append_to(statement) ⇒ Object
14 15 16 |
# File 'lib/db/model/statement/clause.rb', line 14 def append_to(statement) statement.clause(@value) end |