Class: Rubycop::Analyzer::Ruby::Module

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(const, body) ⇒ Module

Returns a new instance of Module.



17
18
19
20
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 17

def initialize(const, body)
  @const = const
  @body  = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#constObject (readonly)

Returns the value of attribute const.



22
23
24
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 22

def const
  @const
end