Sha256: 02a0ea4c983c82d86a88ec1254f04dcc245f092b33af584cd017e843c0be1cdd

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

class Request
  # A routed request with routing params
  #
  # FIXME: I do not like this, need to come up with something much better!
  #
  # Violates LSP. 
  #
  # Remove this once "Dispatch" class in Joy is ready.
  #
  class Routed < self
    include Concord.new(:request, :routing_params)

    METHODS.each do |name|
      define_method(name) do
        @request.public_send(name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
request-0.0.2 lib/request/routed.rb