Module: Alf::Lang::ObjectOriented

Includes:
AggregationMethods, AlgebraMethods, RenderingMethods
Included in:
Relation, Relvar
Defined in:
lib/alf/lang/object_oriented.rb,
lib/alf/lang/oo/algebra_methods.rb,
lib/alf/lang/oo/rendering_methods.rb,
lib/alf/lang/oo/aggregation_methods.rb

Defined Under Namespace

Modules: AggregationMethods, AlgebraMethods, RenderingMethods

Class Method Summary collapse

Methods included from RenderingMethods

def_renderer_method, #to_a, #to_array

Methods included from AlgebraMethods

#!~, #&, #*, #+, #-, #=~, def_operator_method, #tuple_extract

Methods included from AggregationMethods

def_aggregator_method

Class Method Details

.new(self_operand) ⇒ Object


11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/alf/lang/object_oriented.rb', line 11

def self.new(self_operand)
  Module.new{
    include ObjectOriented
    define_method(:_self_operand) do
      self_operand
    end
    define_method(:to_cog) do
      self_operand.to_cog
    end
    private :_self_operand
  }
end