Sha256: 5a0881a913f50da9068cd3a527c1429e1399c62f341773c9b486156fddaa651b

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

module WampRails
  module Command
    class BaseHandler < BaseCommand
      attr_accessor :klass

      def handler
        lambda { |args, kwargs, details|
          object = klass.new(args, kwargs, details, client)
          object.handler
        }
      end

      def initialize(client, klass)
        super(client)
        self.klass = klass
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wamp_rails-0.0.2 lib/wamp_rails/commands/base_handler.rb