Class: Alf::Engine::Rank::Cesure
- Inherits:
-
Object
- Object
- Alf::Engine::Rank::Cesure
- Includes:
- Cesure, Alf::Engine::Rank
- Defined in:
- lib/alf/engine/rank/cesure.rb
Constant Summary
Constants included from Cog
Cog::EMPTY_CHILDREN, Cog::EMPTY_OPTIONS
Instance Attribute Summary collapse
-
#as ⇒ AttrName
readonly
Name of the introduced attribute.
-
#by ⇒ AttrList
readonly
List of attributes that form the operand ordering.
-
#operand ⇒ Enumerable
readonly
The operand.
Attributes included from Compiler::Cog
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(operand, by, as, expr = nil, compiler = nil) ⇒ Cesure
constructor
Creates an Rank::Cesure instance.
Methods included from Cesure
Methods included from Cog
#children, #each, #options, #to_s
Methods included from Compiler::Cog
#cog_orders, #orderedby?, #relation_type, #to_ascii_tree, #to_cog, #to_relation
Constructor Details
#initialize(operand, by, as, expr = nil, compiler = nil) ⇒ Cesure
Creates an Rank::Cesure instance
17 18 19 20 21 22 |
# File 'lib/alf/engine/rank/cesure.rb', line 17 def initialize(operand, by, as, expr = nil, compiler = nil) super(expr, compiler) @operand = operand @by = by.to_attr_list @as = as end |
Instance Attribute Details
#as ⇒ AttrName (readonly)
Returns Name of the introduced attribute.
14 15 16 |
# File 'lib/alf/engine/rank/cesure.rb', line 14 def as @as end |
#by ⇒ AttrList (readonly)
Returns List of attributes that form the operand ordering.
11 12 13 |
# File 'lib/alf/engine/rank/cesure.rb', line 11 def by @by end |
#operand ⇒ Enumerable (readonly)
Returns The operand.
8 9 10 |
# File 'lib/alf/engine/rank/cesure.rb', line 8 def operand @operand end |
Instance Method Details
#arguments ⇒ Object
24 25 26 |
# File 'lib/alf/engine/rank/cesure.rb', line 24 def arguments [ by, as ] end |