Class: ActionDispatch::Journey::Nodes::Or

Inherits:
Node show all
Defined in:
actionpack/lib/action_dispatch/journey/nodes/node.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Node

#left, #memo

Instance Method Summary collapse

Methods inherited from Node

#each, #literal?, #name, #symbol?, #to_dot, #to_s, #to_sym

Methods included from Enumerable

#as_json, #exclude?, #index_by, #many?, #sum

Constructor Details

#initialize(children) ⇒ Or

Returns a new instance of Or.



116
117
118
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 116

def initialize(children)
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children



114
115
116
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 114

def children
  @children
end

Instance Method Details

#typeObject



120
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 120

def type; :OR; end