Class: Alf::Sql::Processor::Requalify
- Inherits:
-
Alf::Sql::Processor
- Object
- Sexpr::Rewriter
- Alf::Sql::Processor
- Alf::Sql::Processor::Requalify
- Defined in:
- lib/alf/sql/processor/requalify.rb
Constant Summary
Constants inherited from Alf::Sql::Processor
Instance Attribute Summary collapse
-
#requalify ⇒ Object
readonly
Returns the value of attribute requalify.
Attributes inherited from Alf::Sql::Processor
Instance Method Summary collapse
-
#initialize(builder) ⇒ Requalify
constructor
A new instance of Requalify.
- #on_range_var_name(sexpr) ⇒ Object
Methods inherited from Alf::Sql::Processor
#on_set_operator, #on_with_exp
Constructor Details
#initialize(builder) ⇒ Requalify
Returns a new instance of Requalify.
6 7 8 9 10 11 |
# File 'lib/alf/sql/processor/requalify.rb', line 6 def initialize(builder) super @requalify = Hash.new{|h,k| h[k] = Grammar.sexpr [:range_var_name, builder.next_qualifier!] } end |
Instance Attribute Details
#requalify ⇒ Object (readonly)
Returns the value of attribute requalify.
12 13 14 |
# File 'lib/alf/sql/processor/requalify.rb', line 12 def requalify @requalify end |
Instance Method Details
#on_range_var_name(sexpr) ⇒ Object
17 18 19 |
# File 'lib/alf/sql/processor/requalify.rb', line 17 def on_range_var_name(sexpr) requalify[sexpr] end |