lib/inch/code_object/provider/yard/parser.rb in inch-0.4.6 vs lib/inch/code_object/provider/yard/parser.rb in inch-0.4.7
- old
+ new
@@ -9,11 +9,11 @@
# Helper method to parse an instance with the given +args+
#
# @see #parse
# @return [CodeObject::Provider::YARD::Parser] the instance that ran
def self.parse(*args)
- parser = self.new
+ parser = new
parser.parse(*args)
parser
end
# @param dir [String] directory
@@ -44,10 +44,10 @@
def inject_base_dir(dir)
objects.each do |object|
object.base_dir = dir
object.aliases_fullnames.each do |fullname|
- _alias = objects.detect { |o| o.fullname == fullname }
+ _alias = objects.find { |o| o.fullname == fullname }
_alias.aliased_object_fullname = object.fullname
end
end
end