Sha256: fc87ccae06d2a8999f2c0d23d24aa35fb8ccf69aa9baf20cb5a322c33dcd98d9

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

module YARD::Handlers::C
  class MRubyMethodHandler < MRubyBase
    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.1.0 lib/yard/handlers/c/mruby_method_handler.rb