lib/cgi_party/response.rb in cgi_party-0.1.0 vs lib/cgi_party/response.rb in cgi_party-0.1.1
- old
+ new
@@ -6,10 +6,11 @@
@source_data = source_data
@received_at = Time.now
end
def method_missing(method_name, *args, &block)
- fetch_value(method_name) || super
+ return fetch_value(method_name) if key_present?(method_name)
+ super
end
def respond_to_missing?(method_name, include_private = false)
key_present?(method_name) || super
end