Delegating to the object makes things like raise("") and Integer() work

This commit is contained in:
Benjamin Fleischer 2017-05-15 10:24:57 -05:00
parent ef00242421
commit 13c5c12374

View File

@ -204,5 +204,15 @@ module AMS
def send(*args) def send(*args)
__send__(*args) __send__(*args)
end end
private
def method_missing(name, *args, &block)
object.send(name, *args, &block)
end
def respond_to_missing?(name, include_private = false)
object.respond_to?(name, include_private)
end
end end
end end