lib/yard/handlers/c/handler_methods.rb in yard-0.8.3 vs lib/yard/handlers/c/handler_methods.rb in yard-0.8.4

- old
+ new

@@ -43,10 +43,10 @@ namespace = namespace_for_variable(var_name) return if namespace.nil? # XXX: raise UndocumentableError might be too noisy. register MethodObject.new(namespace, name, scope) do |obj| register_visibility(obj, visibility) find_method_body(obj, func_name) - obj.docstring.add_tag(Tags::Tag.new(:return, '', 'Boolean')) if name =~ /\?$/ + obj.add_tag(Tags::Tag.new(:return, '', 'Boolean')) if name =~ /\?$/ end end def handle_attribute(var_name, name, read, write) values = {:read => read.to_i, :write => write.to_i}