Class: RdfProcessDefinitionLike::ProcessVariable
- Inherits:
-
Object
- Object
- RdfProcessDefinitionLike::ProcessVariable
- Defined in:
- lib/rdf_process/RdfProcessDefinitionLike.rb
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
- #getName ⇒ Object
-
#initialize(type) ⇒ ProcessVariable
constructor
A new instance of ProcessVariable.
- #method_missing(method, arg) ⇒ Object
- #name(name) ⇒ Object
Constructor Details
#initialize(type) ⇒ ProcessVariable
Returns a new instance of ProcessVariable.
16 17 18 19 |
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 16 def initialize(type) @parameters = {} @parameters[:type] = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, arg) ⇒ Object
29 30 31 |
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 29 def method_missing(method, arg) @parameters[method] = arg end |
Instance Attribute Details
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
14 15 16 |
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 14 def parameters @parameters end |
Instance Method Details
#getName ⇒ Object
25 26 27 |
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 25 def getName @name end |
#name(name) ⇒ Object
21 22 23 |
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 21 def name(name) @name = name end |