Module: Alf::Algebra::Operator::ClassMethods

Defined in:
lib/alf-algebra/alf/algebra/operator.rb

Overview

Encapsulates method that allows making operator introspection, that is, knowing operator cardinality and similar stuff.

Instance Method Summary collapse

Instance Method Details

#rubycase_nameObject

Returns the ruby case name of this operator



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

def rubycase_name
  Support.rubycase_name(self)
end

#signatureObject

Installs or set the operator signature



18
19
20
21
22
23
24
25
# File 'lib/alf-algebra/alf/algebra/operator.rb', line 18

def signature
  if block_given?
    @signature = Signature.new(self, &Proc.new)
    @signature.install
  else
    @signature ||= Signature.new(self)
  end
end