Sha256: b5ca3c47a678dffe5d95976d2d818f7440ff15a943835b305d6adc118ffc0b5b

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 Bytes

Contents

class TestPersistence < FlipFab::Persistence

  def initialize feature_name, context
    super
  end

  def read
    context.feature_states[feature_name]
  end

  def write state
    context.feature_states[feature_name] = state
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flip_fab-1.0.1 spec/support/test_persistence.rb
flip_fab-1.0.0 spec/support/test_persistence.rb
flip_fab-0.0.1 spec/support/test_persistence.rb