lib/yard/handlers/ruby/alias_handler.rb in yard-0.5.3 vs lib/yard/handlers/ruby/alias_handler.rb in yard-0.5.4
- old
+ new
@@ -1,8 +1,8 @@
class YARD::Handlers::Ruby::AliasHandler < YARD::Handlers::Ruby::Base
handles :alias, method_call(:alias_method)
- def process
+ process do
names = []
if statement.type == :alias
names = statement.map {|o| o.jump(:ident, :op, :kw, :const).first }
elsif statement.call?
statement.parameters(false).each do |obj|
\ No newline at end of file