Class: Semantic::AttrFn

Inherits:
Struct
  • Object
show all
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)

Instance Attribute Details

- (Object) args

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



20
21
22
# File '../lib/semantic_types.rb', line 20

def args
  @args
end

- (Object) func

Returns the value of attribute func

Returns:

  • (Object)

    the current value of func



20
21
22
# File '../lib/semantic_types.rb', line 20

def func
  @func
end

- (Object) orig

Returns the value of attribute orig

Returns:

  • (Object)

    the current value of orig



20
21
22
# File '../lib/semantic_types.rb', line 20

def orig
  @orig
end

- (Object) target

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



20
21
22
# File '../lib/semantic_types.rb', line 20

def target
  @target
end