lib/yard/handlers/ruby/alias_handler.rb in yard-0.7.5 vs lib/yard/handlers/ruby/alias_handler.rb in yard-0.8.0

- old
+ new

@@ -20,11 +20,9 @@ raise YARD::Parser::UndocumentableError, "alias/alias_method" if names.size != 2 new_meth, old_meth = names[0].to_sym, names[1].to_sym old_obj = namespace.child(:name => old_meth, :scope => scope) new_obj = register MethodObject.new(namespace, new_meth, scope) do |o| - o.visibility = visibility - o.scope = scope o.add_file(parser.file, statement.line) end if old_obj new_obj.signature = old_obj.signature \ No newline at end of file