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

- old
+ new

@@ -1,9 +1,9 @@ class YARD::Handlers::Ruby::Legacy::ConstantHandler < YARD::Handlers::Ruby::Legacy::Base HANDLER_MATCH = /\A[A-Z]\w*\s*=[^=]\s*/m handles HANDLER_MATCH - def process + process do # Don't document CONSTANTS if they're set in second class objects (methods) because # they're not "static" when executed from a method return unless owner.is_a? NamespaceObject name, value = *statement.tokens.to_s.split(/\s*=\s*/, 2) \ No newline at end of file