Sha256: 549ff0e0edff5fe0e3f03552afc5143d2083685e1bf6bd982c9790617d3e082b

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

require "mog/client"

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

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mog-0.0.3 lib/mog.rb
mog-0.0.2 lib/mog.rb
mog-0.0.1 lib/mog.rb