Module: GithubPulley

Defined in:
lib/github_pulley.rb,
lib/github_pulley/base.rb,
lib/github_pulley/version.rb,
lib/github_pulley/exception.rb

Defined Under Namespace

Classes: Base, Error

Constant Summary collapse

VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object



14
15
16
17
# File 'lib/github_pulley.rb', line 14

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.newObject

Alias for GithubPulley::Base.new



10
11
12
# File 'lib/github_pulley.rb', line 10

def new
  GithubPulley::Base.new
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/github_pulley.rb', line 19

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