Sha256: 84fd5ca47b46d6b29d206448e4fad0a791a04a1ab1035adcbc204bd09d8e12cb

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

module Hyperstack
  module Router
    module Helpers
      def match
        @_match_param
      end

      def location
        @_location_param
      end

      def history
        @_history_param
      end

      def self.included(base)
        base.include(Hyperstack::Internal::Router::Helpers)

        base.class_eval do
          param :match,    default: nil, alias: :_match_param
          param :location, default: nil, alias: :_location_param
          param :history,  default: nil, alias: :_history_param
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyper-router-1.0.alpha1.8 lib/hyperstack/router/helpers.rb
hyper-router-1.0.alpha1.7 lib/hyperstack/router/helpers.rb
hyper-router-1.0.alpha1.6 lib/hyperstack/router/helpers.rb
hyper-router-1.0.alpha1.5 lib/hyperstack/router/helpers.rb