[macruby-changes] [4640] DietRB/trunk/lib/irb/ext/completion.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 03:52:40 PDT 2010
Revision: 4640
http://trac.macosforge.org/projects/ruby/changeset/4640
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 03:52:39 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Small cleanup
From: Eloy Duran <eloy.de.enige at gmail.com>
Modified Paths:
--------------
DietRB/trunk/lib/irb/ext/completion.rb
Modified: DietRB/trunk/lib/irb/ext/completion.rb
===================================================================
--- DietRB/trunk/lib/irb/ext/completion.rb 2010-10-08 10:52:30 UTC (rev 4639)
+++ DietRB/trunk/lib/irb/ext/completion.rb 2010-10-08 10:52:39 UTC (rev 4640)
@@ -108,15 +108,15 @@
end.instance_methods
end
- def methods_of_object_in_variable(var)
- subtype, name = var[VALUE][0..1]
+ def methods_of_object_in_variable(path)
+ type, name = path[VALUE][0..1]
- if var[TYPE] == :top_const_ref
- if subtype == :@const && Object.constants.include?(name.to_sym)
+ if path[TYPE] == :top_const_ref
+ if type == :@const && Object.constants.include?(name.to_sym)
evaluate("::#{name}").methods
end
else
- case subtype
+ case type
when :@ident
evaluate(name).methods if local_variables.include?(name)
when :@gvar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/049857a6/attachment-0001.html>
More information about the macruby-changes
mailing list