Class: Fastererer::VariableReference

Inherits:
Object
  • Object
show all
Defined in:
lib/fastererer/method_call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

Returns:

  • (Boolean)


140
141
142
# File 'lib/fastererer/method_call.rb', line 140

def hash?
  false
end