Class: Alf::Algebra::Defaults

Inherits:
Object
  • Object
show all
Includes:
NonRelational, Operator, Unary
Defined in:
lib/alf-algebra/alf/algebra/operator/defaults.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 NonRelational

included

Methods included from Unary

included, #operand, #with_operand

Instance Method Details

#headingObject



11
12
13
14
15
16
# File 'lib/alf-algebra/alf/algebra/operator/defaults.rb', line 11

def heading
  @heading ||= begin
    defh = defaults.to_heading
    strict ? defh : operand.heading.merge(defh)
  end
end

#keysObject



18
19
20
# File 'lib/alf-algebra/alf/algebra/operator/defaults.rb', line 18

def keys
  @keys ||= operand.keys
end