Sha256: 4058287d1a682525f8cf5cde3d4c25b79e206d5c5017187c33e80cd702180573

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

module Pleiades
  module Command
    module Routing
      module PathBuilder
        extend ActiveSupport::Concern
        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
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pleiades-0.1.6 lib/pleiades/core/command/routing/path_builder.rb
pleiades-0.1.5 lib/pleiades/core/command/routing/path_builder.rb
pleiades-0.1.4 lib/pleiades/core/command/routing/path_builder.rb
pleiades-0.1.3 lib/pleiades/core/command/routing/path_builder.rb
pleiades-0.1.2 lib/pleiades/core/command/routing/path_builder.rb