Sha256: 26bf57299e98600760bf03e0ce0c7a1438006bead0bb6f16af24323587d910e9

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 Bytes

Contents

module Twurl
  # Subclasses need to implement a `dispatch' instance method.
  class AbstractCommandController
    attr_reader :client, :options
    class << self
      def dispatch(*args, &block)
        new(*args, &block).dispatch
      end
    end

    def initialize(client, options)
      @client  = client
      @options = options
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
twurl-0.9.7 lib/twurl/abstract_command_controller.rb
twurl-0.9.6 lib/twurl/abstract_command_controller.rb
twurl-0.9.5 lib/twurl/abstract_command_controller.rb
twurl-0.9.4 lib/twurl/abstract_command_controller.rb
twurl-0.9.3 lib/twurl/abstract_command_controller.rb
twurl-0.9.2 lib/twurl/abstract_command_controller.rb
twurl-0.9.1 lib/twurl/abstract_command_controller.rb
twurl-0.9.0 lib/twurl/abstract_command_controller.rb
twurl-0.8.3 lib/twurl/abstract_command_controller.rb
twurl-0.8.2 lib/twurl/abstract_command_controller.rb
twurl-0.8.1 lib/twurl/abstract_command_controller.rb
twurl-0.8.0 lib/twurl/abstract_command_controller.rb
twurl-0.7.0 lib/twurl/abstract_command_controller.rb
twurl-0.6.7 lib/twurl/abstract_command_controller.rb
twurl-0.6.6 lib/twurl/abstract_command_controller.rb