Class: RubyCop::Ruby::Class
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#const ⇒ Object
readonly
Returns the value of attribute const.
-
#superclass ⇒ Object
readonly
Returns the value of attribute superclass.
Instance Method Summary collapse
-
#initialize(const, superclass, body) ⇒ Class
constructor
A new instance of Class.
Methods inherited from Node
Constructor Details
#initialize(const, superclass, body) ⇒ Class
Returns a new instance of Class.
26 27 28 29 30 |
# File 'lib/ruby_cop/ruby/constants.rb', line 26 def initialize(const, superclass, body) @const = const @superclass = superclass @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
34 35 36 |
# File 'lib/ruby_cop/ruby/constants.rb', line 34 def body @body end |
#const ⇒ Object (readonly)
Returns the value of attribute const.
32 33 34 |
# File 'lib/ruby_cop/ruby/constants.rb', line 32 def const @const end |
#superclass ⇒ Object (readonly)
Returns the value of attribute superclass.
33 34 35 |
# File 'lib/ruby_cop/ruby/constants.rb', line 33 def superclass @superclass end |