Class: Alf::Engine::Rank::Cesure
- Inherits:
-
Object
- Object
- Alf::Engine::Rank::Cesure
- Includes:
- Cesure
- Defined in:
- lib/alf-engine/alf/engine/rank/cesure.rb
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.
Instance Method Summary collapse
-
#initialize(operand, by, as) ⇒ Cesure
constructor
Creates an Rank::Cesure instance.
Methods included from Cesure
Methods included from Cog
Constructor Details
#initialize(operand, by, as) ⇒ Cesure
Creates an Rank::Cesure instance
16 17 18 19 20 |
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 16 def initialize(operand, by, as) @operand = operand @by = by.to_attr_list @as = as end |
Instance Attribute Details
#as ⇒ AttrName (readonly)
Returns Name of the introduced attribute.
13 14 15 |
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 13 def as @as end |
#by ⇒ AttrList (readonly)
Returns List of attributes that form the operand ordering.
10 11 12 |
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 10 def by @by end |
#operand ⇒ Enumerable (readonly)
Returns The operand.
7 8 9 |
# File 'lib/alf-engine/alf/engine/rank/cesure.rb', line 7 def operand @operand end |