Sha256: 42811f340a50a8ad362cf3c36835c1d1d9efc9fb5050045e566fd89ceaa7d558
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
module SeedGimmick module SeedIO class Base attr_reader :seed_file def initialize(seed_file) @seed_file = seed_file end def load_data raise NotImplementedError end def dump_data(array_of_hashes) raise NotImplementedError end private def write_raw(data) seed_file.dirname.mkpath seed_file.open("w") {|f| f.write data } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seed_gimmick-0.0.2 | lib/seed_gimmick/seed_io/base.rb |