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.



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

#childrenObject

Returns the value of attribute children.



81
82
83
# File 'lib/rubocop/cop/obsession/method_order.rb', line 81

def children
  @children
end

#valueObject

Returns the value of attribute value.



81
82
83
# File 'lib/rubocop/cop/obsession/method_order.rb', line 81

def value
  @value
end