Class: Fastererer::VariableReference
- Inherits:
-
Object
- Object
- Fastererer::VariableReference
- Defined in:
- lib/fastererer/method_call.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#hash? ⇒ Boolean
A bare local/constant reference can’t be proven to hold a Hash.
-
#initialize(node) ⇒ VariableReference
constructor
A new instance of VariableReference.
Constructor Details
#initialize(node) ⇒ VariableReference
Returns a new instance of VariableReference.
135 136 137 |
# File 'lib/fastererer/method_call.rb', line 135 def initialize(node) @name = node.name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
133 134 135 |
# File 'lib/fastererer/method_call.rb', line 133 def name @name end |
Instance Method Details
#hash? ⇒ Boolean
A bare local/constant reference can’t be proven to hold a Hash
140 141 142 |
# File 'lib/fastererer/method_call.rb', line 140 def hash? false end |