lib/yard/handlers/ruby/legacy/constant_handler.rb in yard-0.5.4 vs lib/yard/handlers/ruby/legacy/constant_handler.rb in yard-0.5.5

- old
+ new

@@ -23,10 +23,10 @@ klass.superclass = P(:Struct) tokval_list(YARD::Parser::Ruby::Legacy::TokenList.new(parameters), TkSYMBOL).each do |name| klass.attributes[scope][name] = SymbolHash[:read => nil, :write => nil] {:read => name, :write => "#{name}="}.each do |type, meth| - klass.attributes[scope][name][type] = MethodObject.new(klass, meth, scope) + klass.attributes[scope][name][type] = register MethodObject.new(klass, meth, scope) end end end -end \ No newline at end of file +end