lib/surrogate/hatchling.rb in surrogate-0.6.5 vs lib/surrogate/hatchling.rb in surrogate-0.7.0

- old
+ new

@@ -51,12 +51,10 @@ def interfaces_must_match!(method_name, args) api_methods[method_name].must_match! args end def get_default(method_name, invocation) - api_methods[method_name].default instance, invocation do - raise UnpreparedMethodError, "#{method_name} has been invoked without being told how to behave" - end + api_methods[method_name].default instance, invocation end def must_know(method_name) return if api_methods.has_key? method_name if api_methods.empty?