Sha256: 42e5a92bee9a2600cb122516a68e738c0ab10825c40daedc57a0dcc822e857f9

Contents?: true

Size: 502 Bytes

Versions: 7

Compression:

Stored size: 502 Bytes

Contents

require 'fiona7/widget_gc/sweep_strategies/revert_sweep'
require 'fiona7/widget_gc/sweep_strategies/archive_sweep'

module Fiona7
  module WidgetGc
    module SweepStrategies
      module Factory
        def self.for(mode, name=Fiona7.widget_gc_strategy)
          case [mode, name]
          when [:update, :revert_archive]
            RevertSweep
          when [:release, :revert_archive]
            ArchiveSweep
          else
            nil
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
infopark_fiona7-1.6.1.1.5 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.6.1.1.1 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.6.1.1.0 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.5.5.5.1 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.5.5.5.0 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.5.5.4.1 lib/fiona7/widget_gc/sweep_strategies/factory.rb
infopark_fiona7-1.5.5.4.0 lib/fiona7/widget_gc/sweep_strategies/factory.rb