Sha256: 18d48dcbc41a0a63d5cbe26f03430e7307bdb950999c352946699e85864ab21e
Contents?: true
Size: 494 Bytes
Versions: 5
Compression:
Stored size: 494 Bytes
Contents
module Grape class Namespace attr_reader :space, :options # options: # requirements: a hash def initialize(space, options = {}) @space, @options = space.to_s, options end def requirements options[:requirements] || {} end def self.joined_space(settings) settings.gather(:namespace).map(&:space).join("/") end def self.joined_space_path(settings) Rack::Mount::Utils.normalize_path(joined_space(settings)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
grape-0.6.1 | lib/grape/namespace.rb |
grape-0.6.0 | lib/grape/namespace.rb |
grape-0.5.0 | lib/grape/namespace.rb |
grape-0.4.1 | lib/grape/namespace.rb |
grape-0.4.0 | lib/grape/namespace.rb |