Sha256: a84162570d2cdf83b64eb5a341d379343d85a659694bd268444c95dd6c9ec5be

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

module YARD::MRuby::Handlers::C::Source
  class MethodHandler < Base
    MATCH1 = /mrb_define_(
        method |
        singleton_method |
        module_function
      )
      \s*\(
      \s*\w+\s*,
      \s*(\w+)\s*,
      \s*"(\w+)"\s*,
      \s*(\w+)\s*,
    /mx

    handles MATCH1
    statement_class BodyStatement

    process do
      statement.source.scan(MATCH1) do |type,var_name, name, func_name|
        handle_method(type, var_name, name, func_name)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yard-mruby-0.2.0 lib/yard/mruby/handlers/c/source/method_handler.rb