lib/inch/code_object/proxy/method_object.rb in inch-0.4.6 vs lib/inch/code_object/proxy/method_object.rb in inch-0.4.7
- old
+ new
@@ -34,11 +34,11 @@
false
end
end
def parameter(name)
- parameters.detect { |p| p.name == name.to_s }
+ parameters.find { |p| p.name == name.to_s }
end
def parameters
@parameters ||= self[:parameters].map do |param_attr|
MethodParameterObject.new(param_attr)
@@ -48,10 +48,11 @@
def overridden?
self[:overridden?]
end
def overridden_method
- @overridden_method ||= object_lookup.find(self[:overridden_method_fullname])
+ @overridden_method ||=
+ object_lookup.find(self[:overridden_method_fullname])
end
def return_mentioned?
self[:return_mentioned?]
end