Sha256: 01ea5c8b925928985a2940551eafc50d81f7201131634ff52b8148cd25b6334a

Contents?: true

Size: 157 Bytes

Versions: 6

Compression:

Stored size: 157 Bytes

Contents

module Estratto
  module Helpers
    class Range
      def self.for(string)
        ::Range.new(*string.split('..').map(&:to_i))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
estratto-1.0.5 lib/estratto/helpers/range.rb
estratto-1.0.4 lib/estratto/helpers/range.rb
estratto-1.0.3 lib/estratto/helpers/range.rb
estratto-1.0.2 lib/estratto/helpers/range.rb
estratto-1.0.1 lib/estratto/helpers/range.rb
estratto-1.0.0 lib/estratto/helpers/range.rb