From 12ad10bad1a6e25056b9607c8ed1c070a5264de9 Mon Sep 17 00:00:00 2001 From: Benjamin Attal Date: Mon, 9 Jun 2014 15:53:09 -0400 Subject: [PATCH] Rename modules 'namespaces' --- parsers/ruby/lib/parser.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parsers/ruby/lib/parser.rb b/parsers/ruby/lib/parser.rb index 8511338..0062a0c 100644 --- a/parsers/ruby/lib/parser.rb +++ b/parsers/ruby/lib/parser.rb @@ -25,17 +25,17 @@ module Bitshift def initialize(tree) super() - module_hash = Hash.new { + ns_hash = Hash.new { |hash, key| hash[key] = { assignments: [], uses: [] } } - class_hash = module_hash.clone - function_hash = module_hash.clone - var_hash = module_hash.clone + class_hash = ns_hash.clone + function_hash = ns_hash.clone + var_hash = ns_hash.clone @require_empty = false @symbols = { - namespaces: module_hash, + namespaces: ns_hash, classes: class_hash, functions: function_hash, vars: var_hash