From 3a60c88a3b3dbd334e4769a6283fb90c0495c25b Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Fri, 25 Sep 2015 18:01:14 -0300 Subject: Sorting tons of stuff around --- lib/yard/mruby/handlers/header/function_handler.rb | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 lib/yard/mruby/handlers/header/function_handler.rb (limited to 'lib/yard/mruby/handlers/header/function_handler.rb') diff --git a/lib/yard/mruby/handlers/header/function_handler.rb b/lib/yard/mruby/handlers/header/function_handler.rb deleted file mode 100644 index 9b98258..0000000 --- a/lib/yard/mruby/handlers/header/function_handler.rb +++ /dev/null @@ -1,23 +0,0 @@ -module YARD::MRuby::Handlers::Header - class FunctionHandler < Base - MATCH = / - MRB_(API|INLINE)\s+((\w+\s+)+)(\w+)\s*\( - /mx - - handles MATCH - statement_class ToplevelStatement - - process do - handle_function(statement) - end - - def handle_function(statement) - header = self.header(statement.file) - - statement.source.scan(MATCH) do |type, prefix, _, name, *args| - register FunctionObject.new(header, name) do |obj| - end - end - end - end -end -- cgit v1.2.3