Module: Pleiades::Command::Routing::PathBuilder
- Extended by:
- ActiveSupport::Concern
- Included in:
- Pleiades::Command::Router, Result
- Defined in:
- lib/pleiades/core/command/routing/path_builder.rb
Instance Method Summary collapse
Instance Method Details
#normalize_path(scope = nil, action = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/pleiades/core/command/routing/path_builder.rb', line 6 def normalize_path(scope = nil, action = nil) dirs = [] dirs << @options[:scope] if @options[:scope].any? dirs << scope if scope dirs << (action || @options[:action]) dirs.join('/') end |