Permalink
Browse files

Added implicit DataSet creation.

  • Loading branch information...
Cyrus Hall
Cyrus Hall committed Mar 14, 2007
1 parent 1a477e3 commit 4631c4c82c97594f5dac6ff7253f48ba2619cdc2
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/gosim/data.rb
View
@@ -151,6 +151,9 @@ def add_handler(key, &block)
end
def [](set)
+ if !@@sets.has_key?(set)
+ DataSet.new(set)
+ end
@@sets[set]
end
end

0 comments on commit 4631c4c

Please sign in to comment.