module Beerbelly

Constants

VERSION

Public Class Methods

client() click to toggle source
# File lib/beerbelly.rb, line 7
def client
  @client ||= Beerbelly::Client.new
end

Private Class Methods

method_missing(method_name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/beerbelly.rb, line 13
def method_missing(method_name, *arguments, &block)
  return super unless client.respond_to?(method_name)
  client.send(method_name, *arguments, &block)
end
respond_to_missing?(method_name, include_private = false) click to toggle source

Always define respond_to_missing? when overriding method_missing robots.thoughtbot.com/always-define-respond-to-missing-when-overriding

Calls superclass method
# File lib/beerbelly.rb, line 20
def respond_to_missing?(method_name, include_private = false)
  client.respond_to?(method_name) || super
end