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

Inherits:
Node
  • Object
show all
Defined in:
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

Constructor Details

#initialize(children) ⇒ Or

Returns a new instance of Or.



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

def initialize(children)
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



128
129
130
# File 'lib/action_dispatch/journey/nodes/node.rb', line 128

def children
  @children
end

Instance Method Details

#typeObject



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

def type; :OR; end