Sha256: f644ff3037e66d1e2b7a3fa234f3d6c6b6105df3c94fb0be01847cfa6879d694

Contents?: true

Size: 405 Bytes

Versions: 12

Compression:

Stored size: 405 Bytes

Contents

$LOAD_PATH.unshift '../lib'
require 'memory_record'

class C
  include MemoryRecord
  memory_record [{key: :a}]
end

C.keys                          # => [:a]

# Can not update with memory_record
class C
  memory_record [{key: :b}]
end

C.keys                          # => [:a]

# With memory_record_reset you can rebuild data
C.memory_record_reset [{key: :c}]

C.keys                          # => [:c]

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
memory_record-0.0.20 examples/0150_reset.rb
memory_record-0.0.19 examples/0150_reset.rb
memory_record-0.0.18 examples/0150_reset.rb
memory_record-0.0.17 examples/0150_reset.rb
memory_record-0.0.15 examples/0150_reset.rb
memory_record-0.0.14 examples/0150_reset.rb
memory_record-0.0.13 examples/0150_reset.rb
memory_record-0.0.12 examples/0150_reset.rb
memory_record-0.0.11 examples/0150_reset.rb
memory_record-0.0.10 examples/0150_reset.rb
memory_record-0.0.9 examples/0150_reset.rb
memory_record-0.0.8 examples/0150_reset.rb