Sha256: 2643a88083959e97eac29e30f90517f4c8b05762c0dc3b66e67493d4b0a5c26e
Contents?: true
Size: 198 Bytes
Versions: 16
Compression:
Stored size: 198 Bytes
Contents
# make a unit from an array # [1, 'mm'].unit => 1 mm class Array def to_unit(other = nil) other ? Unit.new(self).to(other) : Unit.new(self) end alias :unit :to_unit alias :u :to_unit end
Version data entries
16 entries across 16 versions & 3 rubygems