Class: RuboCop::Cop::Obsession::MethodOrder::Node
- Inherits:
-
Object
- Object
- RuboCop::Cop::Obsession::MethodOrder::Node
- Defined in:
- lib/rubocop/cop/obsession/method_order.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, children: []) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(value:, children: []) ⇒ Node
Returns a new instance of Node.
83 84 85 86 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 83 def initialize(value:, children: []) @value = value @children = children end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
81 82 83 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 81 def children @children end |
#value ⇒ Object
Returns the value of attribute value.
81 82 83 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 81 def value @value end |