Class: RubyCop::Ruby::Defined

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_cop/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.



18
19
20
# File 'lib/ruby_cop/ruby/definitions.rb', line 18

def initialize(expression)
  @expression = expression
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



22
23
24
# File 'lib/ruby_cop/ruby/definitions.rb', line 22

def expression
  @expression
end