Class: RubyCop::Ruby::Module
- Defined in:
- lib/ruby_cop/ruby/constants.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#const ⇒ Object
readonly
Returns the value of attribute const.
Instance Method Summary collapse
-
#initialize(const, body) ⇒ Module
constructor
A new instance of Module.
Methods inherited from Node
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
22 23 24 |
# File 'lib/ruby_cop/ruby/constants.rb', line 22 def body @body end |
#const ⇒ Object (readonly)
Returns the value of attribute const.
21 22 23 |
# File 'lib/ruby_cop/ruby/constants.rb', line 21 def const @const end |