Class: Rubycop::Analyzer::Ruby::Defined

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(expression) ⇒ Defined

Returns a new instance of Defined.



19
20
21
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 19

def initialize(expression)
  @expression = expression
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



23
24
25
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 23

def expression
  @expression
end