Class: Alf::Algebra::Rename
- Inherits:
-
Object
- Object
- Alf::Algebra::Rename
- Includes:
- Operator, Relational, Unary
- Defined in:
- lib/alf-algebra/alf/algebra/operator/rename.rb
Instance Attribute Summary
Attributes included from Operator
Attributes included from Support::Bindable
Instance Method Summary collapse
Methods included from Operator
#==, #bind, #dup, included, #initialize, #signature, #to_lispy, #to_relvar, #with_operands
Methods included from Support::Registry
#each, #listen, #listeners, #register, #registered
Methods included from Operand
#attr_list, coerce, #to_cog, #to_dot, #to_relation
Methods included from Support::Bindable
Methods included from Relational
Methods included from Unary
included, #operand, #with_operand
Instance Method Details
#complete_renaming ⇒ Object
18 19 20 |
# File 'lib/alf-algebra/alf/algebra/operator/rename.rb', line 18 def complete_renaming renaming.complete(operand.heading.to_attr_list) end |
#heading ⇒ Object
10 11 12 |
# File 'lib/alf-algebra/alf/algebra/operator/rename.rb', line 10 def heading @heading ||= operand.heading.rename(renaming) end |
#keys ⇒ Object
14 15 16 |
# File 'lib/alf-algebra/alf/algebra/operator/rename.rb', line 14 def keys @keys ||= operand.keys.rename(renaming) end |