Sha256: bf6f1bb3949f1ac2bd60c8b0857f43cb266944e3905ca720c66f17ddd3827cc1

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 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

7 entries across 7 versions & 2 rubygems

Version Path
twurl-0.6.5 lib/twurl/abstract_command_controller.rb
twurl-0.6.4 lib/twurl/abstract_command_controller.rb
twurl-0.6.3 lib/twurl/abstract_command_controller.rb
twurl-0.6.2 lib/twurl/abstract_command_controller.rb
mbbx6spp-twurl-0.6.1 lib/twurl/abstract_command_controller.rb
twurl-0.6.1 lib/twurl/abstract_command_controller.rb
twurl-0.6.0 lib/twurl/abstract_command_controller.rb