Sha256: 12835b4d31a83339aeaed7dfa427d1b8f7e71e1f550d5769bbf6fb9f703f7f1a

Contents?: true

Size: 481 Bytes

Versions: 11

Compression:

Stored size: 481 Bytes

Contents

require "flattr/version"
require "flattr/client"
require "flattr/config"

module Flattr
  extend Config
  class << self

    def new(options={})
      Flattr::Client.new(options)
    end

    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

11 entries across 11 versions & 1 rubygems

Version Path
flattr-0.3.7 lib/flattr.rb
flattr-0.3.6 lib/flattr.rb
flattr-0.3.5 lib/flattr.rb
flattr-0.3.4 lib/flattr.rb
flattr-0.3.3 lib/flattr.rb
flattr-0.3.2 lib/flattr.rb
flattr-0.3.1 lib/flattr.rb
flattr-0.3.0 lib/flattr.rb
flattr-0.2.3 lib/flattr.rb
flattr-0.2.2 lib/flattr.rb
flattr-0.2.1 lib/flattr.rb