Sha256: 2c8974bd898ff5a7897f2d31fb4aba9123fb7c21a85a32afdc8c1c85d79f6eaf
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 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
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
grape-security-0.8.0 | lib/grape/namespace.rb |
grape-0.9.0 | lib/grape/namespace.rb |
grape-0.8.0 | lib/grape/namespace.rb |
grape-0.7.0 | lib/grape/namespace.rb |