Class: Alf::Engine::Compact
- Inherits:
-
Object
- Object
- Alf::Engine::Compact
- Includes:
- Cog
- Defined in:
- lib/alf-engine/alf/engine/compact.rb
Overview
Remove duplicate tuples from its operand.
Defined Under Namespace
Instance Attribute Summary collapse
-
#operand ⇒ Enumerable
readonly
The operand.
Attributes included from Cog
Instance Method Summary collapse
- #_each(&block) ⇒ Object
-
#initialize(operand, expr = nil) ⇒ Compact
constructor
Creates a Compact instance.
Methods included from Cog
#each, #heading, #keys, #to_cog, #to_dot, #to_relation
Constructor Details
#initialize(operand, expr = nil) ⇒ Compact
Creates a Compact instance
13 14 15 16 |
# File 'lib/alf-engine/alf/engine/compact.rb', line 13 def initialize(operand, expr = nil) super(expr) @operand = operand end |
Instance Attribute Details
#operand ⇒ Enumerable (readonly)
Returns The operand.
10 11 12 |
# File 'lib/alf-engine/alf/engine/compact.rb', line 10 def operand @operand end |