Sha256: f88d09f6dc3914d5d25106c146e8d3a4355a4409da6697a6fcab0ef372304852

Contents?: true

Size: 246 Bytes

Versions: 1

Compression:

Stored size: 246 Bytes

Contents

class Measured::CaseInsensitiveUnit < Measured::Unit
  def initialize(name, aliases: [], value: nil, unit_system: nil)
    super(name.to_s.downcase, aliases: aliases.map(&:to_s).map!(&:downcase), value: value, unit_system: unit_system)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
measured-2.0.0.pre2 lib/measured/case_insensitive_unit.rb