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.
80 81 82 83 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 80 def initialize(value:, children: []) @value = value @children = children end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
78 79 80 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 78 def children @children end |
#value ⇒ Object
Returns the value of attribute value.
78 79 80 |
# File 'lib/rubocop/cop/obsession/method_order.rb', line 78 def value @value end |