Sha256: bf8dda963034802979cec25279ed647f8a1b07eae06481ce127c96f9813f9a10
Contents?: true
Size: 582 Bytes
Versions: 18
Compression:
Stored size: 582 Bytes
Contents
require "flipper/adapters/memory" module Flipper class Export attr_reader :contents, :format, :version def initialize(contents:, format: :json, version: 1) @contents = contents @format = format @version = version end def features raise NotImplementedError end def adapter @adapter ||= Flipper::Adapters::Memory.new(features) end def eql?(other) self.class.eql?(other.class) && @contents == other.contents && @format == other.format && @version == other.version end alias_method :==, :eql? end end
Version data entries
18 entries across 18 versions & 1 rubygems