Method: YARD::Handlers::Ruby::Legacy::ConstantHandler#process
- Defined in:
- lib/yard/handlers/ruby/legacy/constant_handler.rb
#process ⇒ void
This method returns an undefined value.
Main processing callback
8 9 10 11 12 13 14 15 |
# File 'lib/yard/handlers/ruby/legacy/constant_handler.rb', line 8 process do name, value = *statement.tokens.to_s.split(/\s*=\s*/, 2) if value =~ /\A\s*Struct.new(?:\s*\(?|\b)/ process_structclass(name, $') else register ConstantObject.new(namespace, name) {|o| o.source = statement; o.value = value.strip } end end |