method
optional_names
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Journey::Path::Pattern
optional_names()public
No documentation available.
# File actionpack/lib/action_dispatch/journey/path/pattern.rb, line 52
def optional_names
@optional_names ||= spec.grep(Nodes::Group).flat_map { |group|
group.grep(Nodes::Symbol)
}.map { |n| n.name }.uniq
end