mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-22 00:00:31 -04:00
cleaning up a pull request from @thomasbrus
This commit is contained in:
parent
6a7f705be3
commit
8b3a00c587
@ -102,16 +102,6 @@ module Stripe
|
||||
@values.each(&blk)
|
||||
end
|
||||
|
||||
if RUBY_VERSION < '1.9.2'
|
||||
def respond_to?(symbol)
|
||||
@values.has_key(symbol) || super
|
||||
end
|
||||
else
|
||||
def respond_to_missing?(symbol, include_private = false)
|
||||
@values.has_key?(symbol) || super
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def metaclass
|
||||
@ -174,5 +164,15 @@ module Stripe
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def respond_to_missing?(symbol, include_private = false)
|
||||
@values.has_key?(symbol) || super
|
||||
end
|
||||
|
||||
if RUBY_VERSION < '1.9.2'
|
||||
def respond_to?(symbol)
|
||||
@values.has_key?(symbol) || super
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user