Class: ParameterExpansion::NewVariable
- Defined in:
- lib/parameter_expansion.rb
Overview
Structure to hold new variable details
Instance Attribute Summary collapse
-
#assignment_code ⇒ Object
Returns the value of attribute assignment_code.
-
#invocation ⇒ Object
Returns the value of attribute invocation.
-
#name ⇒ Object
Returns the value of attribute name.
-
#param ⇒ Object
Returns the value of attribute param.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#assignment_code ⇒ Object
Returns the value of attribute assignment_code
317 318 319 |
# File 'lib/parameter_expansion.rb', line 317 def assignment_code @assignment_code end |
#invocation ⇒ Object
Returns the value of attribute invocation
317 318 319 |
# File 'lib/parameter_expansion.rb', line 317 def invocation @invocation end |
#name ⇒ Object
Returns the value of attribute name
317 318 319 |
# File 'lib/parameter_expansion.rb', line 317 def name @name end |
#param ⇒ Object
Returns the value of attribute param
317 318 319 |
# File 'lib/parameter_expansion.rb', line 317 def param @param end |
#value ⇒ Object
Returns the value of attribute value
317 318 319 |
# File 'lib/parameter_expansion.rb', line 317 def value @value end |
Instance Method Details
#to_s ⇒ Object
318 319 320 |
# File 'lib/parameter_expansion.rb', line 318 def to_s "Variable: #{name} = #{value} (via #{invocation})" end |