Class: Alf::Algebra::Extend

Inherits:
Object
  • Object
show all
Includes:
Operator, Relational, Unary
Defined in:
lib/alf-algebra/alf/algebra/operator/extend.rb

Instance Attribute Summary

Attributes included from Operator

#operands

Attributes included from Support::Bindable

#connection

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

#bind, #bound?, #connection!

Methods included from Relational

included

Methods included from Unary

included, #operand, #with_operand

Instance Method Details

#headingObject



10
11
12
# File 'lib/alf-algebra/alf/algebra/operator/extend.rb', line 10

def heading
  @heading ||= operand.heading.merge(ext.to_heading)
end

#keysObject



14
15
16
17
18
19
# File 'lib/alf-algebra/alf/algebra/operator/extend.rb', line 14

def keys
  @keys ||= begin
    attrs = ext.to_attr_list
    operand.keys.reject{|k| k.intersect?(attrs) }
  end
end