class YARD::MRuby::Handlers::C::Header::FunctionHandler
Constants
- MATCH
Public Instance Methods
handle_function(statement)
click to toggle source
# File lib/yard/mruby/handlers/c/header/function_handler.rb, line 17 def handle_function(statement) header = self.header(statement.file) statement.source.scan(MATCH) do |type, retype, _,_,_,_, name, parameters| register FunctionObject.new(header, name) do |obj| if statement.comments register_docstring(obj, statement.comments.source, statement) end obj.return_type = retype obj.parse_parameter_types(parameters) end end end