Method: YARD::Handlers::Ruby::ConstantHandler#process

Defined in:
lib/yard/handlers/ruby/constant_handler.rb

#processvoid

This method returns an undefined value.

Main processing callback

[View source]

7
8
9
10
11
12
13
14
# File 'lib/yard/handlers/ruby/constant_handler.rb', line 7

process do
  if statement[1].call? && statement[1][0][0] == s(:const, "Struct") &&
      statement[1][2] == s(:ident, "new")
    process_structclass(statement)
  elsif statement[0].type == :var_field && statement[0][0].type == :const
    process_constant(statement)
  end
end