Class: Semantic::AttrFn
- Inherits:
-
Struct
- Object
- Struct
- Semantic::AttrFn
- Defined in:
- ../lib/semantic_types.rb
Overview
The semantic function.
:func .. the actual compiled 'proc' (taking the array as the only parameter),
:target .. AttrRef of the resulting attribute (the output of the semantic function),
:args .. arguments array (containing AttrRefs of the attribute)
:orig .. original source of the semantic function (same text as in the YAML file) for debuging purposes
Instance Attribute Summary (collapse)
-
- (Object) args
Returns the value of attribute args.
-
- (Object) func
Returns the value of attribute func.
-
- (Object) orig
Returns the value of attribute orig.
-
- (Object) target
Returns the value of attribute target.
Instance Attribute Details
- (Object) args
Returns the value of attribute args
20 21 22 |
# File '../lib/semantic_types.rb', line 20 def args @args end |
- (Object) func
Returns the value of attribute func
20 21 22 |
# File '../lib/semantic_types.rb', line 20 def func @func end |
- (Object) orig
Returns the value of attribute orig
20 21 22 |
# File '../lib/semantic_types.rb', line 20 def orig @orig end |
- (Object) target
Returns the value of attribute target
20 21 22 |
# File '../lib/semantic_types.rb', line 20 def target @target end |