Sha256: 84c61113022a6c1388bff592e55f8f7bf92ece4a5c55060b71830ece34bf9ccb

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

module LucidHandler
  module Mixin
    def self.included(base)
      Isomorfeus.add_valid_handler_class(base) unless base == LucidHandler::Base

      base.instance_exec do
        def on_request(&block)
          define_method :process_request do |*args|
            instance_exec(*args, &block)
          end
        end
      end
    end

    def resolving?
      false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
isomorfeus-transport-1.0.0.zeta12 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta11 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta10 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta9 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta8 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta7 lib/lucid_handler/mixin.rb
isomorfeus-transport-1.0.0.zeta6 lib/lucid_handler/mixin.rb