Class: ActionDispatch::Journey::Nodes::Star

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

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Node

#left, #memo

Instance Method Summary collapse

Methods inherited from Unary

#children

Methods inherited from Node

#cat?, #each, #group?, #initialize, #literal?, #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

This class inherits a constructor from ActionDispatch::Journey::Nodes::Node

Instance Method Details

#nameObject


109
110
111
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 109

def name
  left.name.tr "*:", ""
end

#star?Boolean


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

def star?; true; end

#typeObject


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

def type; :STAR; end