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

Defined in:
lib/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


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

def rubycase_name
  Support.rubycase_name(self)
end

#signatureObject

Installs or set the operator signature


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

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