Class: RubyCop::Ruby::Module

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



16
17
18
19
# File 'lib/ruby_cop/ruby/constants.rb', line 16

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#constObject (readonly)

Returns the value of attribute const.



21
22
23
# File 'lib/ruby_cop/ruby/constants.rb', line 21

def const
  @const
end