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
-
#rubycase_name ⇒ Object
Returns the ruby case name of this operator.
-
#signature ⇒ Object
Installs or set the operator signature.
Instance Method Details
#rubycase_name ⇒ Object
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 |
#signature ⇒ Object
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 |