Sha256: defece599ed513c3b06e52d98134657ae71002ad82acfcf339c8b88dcf4f55e9
Contents?: true
Size: 254 Bytes
Versions: 2
Compression:
Stored size: 254 Bytes
Contents
def make_table(table, cls) case [cls] when [ObjectTable] then table when [ObjectTable::View] then table.where{true} when [ObjectTable::StaticView] then table.where{true}.apply{self} else raise "Could not make a a #{cls.inspect} table" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
object_table-0.4.1 | spec/support/utils.rb |
object_table-0.4.0 | spec/support/utils.rb |