Sha256: 6484d6ff07fcc6d3b20193e48162749f263ccff055a085cb204fc86f781b73ea

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

require 'speechpad/client'

module Speechpad
  class << self
    # Alias for Speechpad::Client.new
    #
    # @return [Speechpad::Client]
    def new(options={})
      Speechpad::Client.new(options)
    end

    # Delegate to Speechpad::Client.new
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private=false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
speechpad-0.0.6 lib/speechpad.rb
speechpad-0.0.5 lib/speechpad.rb
speechpad-0.0.4 lib/speechpad.rb
speechpad-0.0.3 lib/speechpad.rb
speechpad-0.0.2 lib/speechpad.rb
speechpad-0.0.1 lib/speechpad.rb