Class: SQL::Composer::DSL
- Inherits:
- BasicObject
- Defined in:
- lib/sql/composer/dsl.rb
Instance Attribute Summary collapse
-
#ast ⇒ Object
readonly
Returns the value of attribute ast.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
- #`(value) ⇒ Object
- #call ⇒ Object
-
#initialize(options, &block) ⇒ DSL
constructor
A new instance of DSL.
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object (private)
41 42 43 44 |
# File 'lib/sql/composer/dsl.rb', line 41 def method_missing(name, *args) ast << [name.to_s.downcase, *args] self end |
Instance Attribute Details
#ast ⇒ Object (readonly)
Returns the value of attribute ast.
16 17 18 |
# File 'lib/sql/composer/dsl.rb', line 16 def ast @ast end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/sql/composer/dsl.rb', line 14 def @options end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
18 19 20 |
# File 'lib/sql/composer/dsl.rb', line 18 def tokens @tokens end |