lib/rom/adapter/memory.rb in rom-0.4.0 vs lib/rom/adapter/memory.rb in rom-0.4.1

- old
+ new

@@ -15,15 +15,19 @@ def initialize(*args) super @connection = Storage.new end - def [](name) - connection[name] + def dataset(name, header = []) + connection.create_dataset(name, header) end def dataset?(name) connection.key?(name) + end + + def [](name) + connection[name] end Adapter.register(self) end