Skip to content

Commit

Permalink
Delete java.util.Map module from java.util.rb. No need anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
yokolet committed Jan 8, 2011
1 parent ce516bd commit 7632457
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/ruby/site_ruby/shared/builtin/java/java.util.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
# TODO java.util.Comparator support?
module java::util::Map
include Enumerable
def each(&block)
entrySet.each { |pair| block.call([pair.key, pair.value]) }
end
def [](key)
get(key)
end
def []=(key,val)
put(key,val)
val
end
end

module java::util::Collection
include Enumerable
def each(&block)
Expand Down

0 comments on commit 7632457

Please sign in to comment.