lib/simplabs/excellent/parsing/code_processor.rb in simplabs-excellent-1.5.1 vs lib/simplabs/excellent/parsing/code_processor.rb in simplabs-excellent-1.5.2

- old
+ new

@@ -9,10 +9,11 @@ require 'simplabs/excellent/parsing/module_context' require 'simplabs/excellent/parsing/for_loop_context' require 'simplabs/excellent/parsing/while_context' require 'simplabs/excellent/parsing/until_context' require 'simplabs/excellent/parsing/cvar_context' +require 'simplabs/excellent/parsing/gvar_context' require 'simplabs/excellent/parsing/ivar_context' require 'simplabs/excellent/parsing/resbody_context' require 'simplabs/excellent/parsing/call_context' module Simplabs @@ -58,9 +59,17 @@ process_default(exp, IvarContext.new(exp, @contexts.last)) end def process_cvar(exp) process_default(exp, CvarContext.new(exp, @contexts.last)) + end + + def process_gvar(exp) + process_default(exp, GvarContext.new(exp, @contexts.last)) + end + + def process_gasgn(exp) + process_default(exp, GvarContext.new(exp, @contexts.last)) end def process_if(exp) process_default(exp, IfContext.new(exp, @contexts.last)) end