Sha256: e9cd486e4544e9d8c1ee0e73f19f2b9784cabe4df8165c6b1a0c66ca4a55215a

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

module Stages
  class MultiplesOf < Stage
    def initialize(factor)
      @factor = factor
      super()
    end
    
    def handle_value(value)
      output(value) if value % @factor == 0
    end 
  end 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stages-0.1.1 lib/stages/multiples_of.rb
stages-0.1.0 lib/stages/multiples_of.rb
stages-0.0.1 lib/stages/multiples_of.rb