lib/inch/code_object/proxy/method_object.rb in inch-0.4.10 vs lib/inch/code_object/proxy/method_object.rb in inch-0.5.0.rc1
- old
+ new
@@ -34,11 +34,11 @@
false
end
end
def parameter(name)
- parameters.find { |p| p.name == name.to_s }
+ parameters.detect { |p| p.name == name.to_s }
end
def parameters
@parameters ||= self[:parameters].map do |param_attr|
MethodParameterObject.new(param_attr)
@@ -48,11 +48,10 @@
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