Class: RuboCop::Cop::Obsession::MethodOrder::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/cop/obsession/method_order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childrenObject

Returns the value of attribute children.



78
79
80
# File 'lib/rubocop/cop/obsession/method_order.rb', line 78

def children
  @children
end

#valueObject

Returns the value of attribute value.



78
79
80
# File 'lib/rubocop/cop/obsession/method_order.rb', line 78

def value
  @value
end