Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added implicit DataSet creation.

  • Loading branch information...
commit 4631c4c82c97594f5dac6ff7253f48ba2619cdc2 1 parent 1a477e3
Cyrus Hall authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/gosim/data.rb
View
3  lib/gosim/data.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.