Class: Rubycop::Analyzer::Ruby::Module
- Defined in:
- lib/rubycop/analyzer/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.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
23 24 25 |
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 23 def body @body end |
#const ⇒ Object (readonly)
Returns the value of attribute const.
22 23 24 |
# File 'lib/rubycop/analyzer/ruby/constants.rb', line 22 def const @const end |