Sha256: a1821a5bbf56021099caa64184e876ad266ed1b1979ccbedffddc67a7b1a2a00

Contents?: true

Size: 469 Bytes

Versions: 15

Compression:

Stored size: 469 Bytes

Contents

module Uricp::Strategy
  
  class Sweeper

    include Uricp::Strategy::Common

    def appropriate?
      if options['sweep'] && sequence_complete?
        return proposal
      end
      debug "#{self.class.name}: not appropriate"
      false
    end

    def command
      "mv #{options['sweep'].first} #{options['sweep'].last};"
    end

    def proposal
      @proposed_options = options.dup
      @proposed_options.delete('sweep')
      self
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
uricp-0.0.15 lib/uricp/strategy/sweeper.rb
uricp-0.0.14 lib/uricp/strategy/sweeper.rb
uricp-0.0.13 lib/uricp/strategy/sweeper.rb
uricp-0.0.12 lib/uricp/strategy/sweeper.rb
uricp-0.0.11 lib/uricp/strategy/sweeper.rb
uricp-0.0.10 lib/uricp/strategy/sweeper.rb
uricp-0.0.9 lib/uricp/strategy/sweeper.rb
uricp-0.0.8 lib/uricp/strategy/sweeper.rb
uricp-0.0.7 lib/uricp/strategy/sweeper.rb
uricp-0.0.6 lib/uricp/strategy/sweeper.rb
uricp-0.0.5 lib/uricp/strategy/sweeper.rb
uricp-0.0.4 lib/uricp/strategy/sweeper.rb
uricp-0.0.3 lib/uricp/strategy/sweeper.rb
uricp-0.0.2 lib/uricp/strategy/sweeper.rb
uricp-0.0.1 lib/uricp/strategy/sweeper.rb