Sha256: d5d98bd119a8e086029df07cecbd1d6ab7b080ceb6d212788c59e6dce7bf3cbc

Contents?: true

Size: 445 Bytes

Versions: 8

Compression:

Stored size: 445 Bytes

Contents

module Uricp::Strategy
  class Sweeper
    include Uricp::Strategy::Common

    def appropriate?
      return proposal if options['sweep'] && sequence_complete?

      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

8 entries across 8 versions & 1 rubygems

Version Path
uricp-0.0.24 lib/uricp/strategy/sweeper.rb
uricp-0.0.23 lib/uricp/strategy/sweeper.rb
uricp-0.0.22 lib/uricp/strategy/sweeper.rb
uricp-0.0.21 lib/uricp/strategy/sweeper.rb
uricp-0.0.20 lib/uricp/strategy/sweeper.rb
uricp-0.0.18 lib/uricp/strategy/sweeper.rb
uricp-0.0.17 lib/uricp/strategy/sweeper.rb
uricp-0.0.16 lib/uricp/strategy/sweeper.rb