From 8f39ce2f59535d307c6921f194884c1bb3e277eb Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 9 Jun 2014 14:30:36 -0400 Subject: [PATCH] Ruby: use 'namespaces' instead of 'modules'. --- parsers/ruby/lib/parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers/ruby/lib/parser.rb b/parsers/ruby/lib/parser.rb index 69b64e1..8511338 100644 --- a/parsers/ruby/lib/parser.rb +++ b/parsers/ruby/lib/parser.rb @@ -35,7 +35,7 @@ module Bitshift @require_empty = false @symbols = { - modules: module_hash, + namespaces: module_hash, classes: class_hash, functions: function_hash, vars: var_hash @@ -71,7 +71,7 @@ module Bitshift while (name = exp.shift).is_a? Sexp end - symbols[:modules][name][:assignments] << pos + symbols[:namespaces][name][:assignments] << pos exp.each_sexp {|s| process(s)} return exp.clear end