lib/yard/mruby/handlers/c/source/method_handler.rb in yard-mruby-0.2.2 vs lib/yard/mruby/handlers/c/source/method_handler.rb in yard-mruby-0.2.3
- old
+ new
@@ -1,25 +1,25 @@
-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*"([^"]+)"\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
+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*"([^"]+)"\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