Method: YARD::Handlers::C::HandlerMethods#handle_constants
- Defined in:
- lib/yard/handlers/c/handler_methods.rb
permalink #handle_constants(type, var_name, const_name, value) ⇒ Object
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/yard/handlers/c/handler_methods.rb', line 84 def handle_constants(type, var_name, const_name, value) return unless type == 'const' namespace = namespace_for_variable(var_name) register ConstantObject.new(namespace, const_name) do |obj| obj.source_type = :c obj.value = value register_file_info(obj, statement.file, statement.line) find_constant_docstring(obj) end end |