Sha256: b7e7dd7a2a9d4afd08d2da6617691ccf787a7e9fa549d8b00fef73082b19e92e

Contents?: true

Size: 78 Bytes

Versions: 5

Compression:

Stored size: 78 Bytes

Contents

class String
  def /(num)
    scan /.{1,#{(size / num.to_f).ceil}}/
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freighthopper-0.1.14 lib/freighthopper/string/divide.rb
freighthopper-0.1.13 lib/freighthopper/string/divide.rb
freighthopper-0.1.12 lib/freighthopper/string/divide.rb
freighthopper-0.1.11 lib/freighthopper/string/divide.rb
freighthopper-0.1.9 lib/freighthopper/string/divide.rb