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

#cat?, #each, #group?, #literal?, #name, #star?, #symbol?, #terminal?, #to_dot, #to_s, #to_sym

Methods included from Enumerable

#as_json, #compact_blank, #exclude?, #excluding, #including, #index_by, #index_with, #many?, #pluck, #sum, #without

Constructor Details

#initialize(children) ⇒ Or

Returns a new instance of Or.



133
134
135
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 133

def initialize(children)
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children



131
132
133
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 131

def children
  @children
end

Instance Method Details

#typeObject



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

def type; :OR; end