Shopify / measured

Encapsulate measurements and their units in Ruby and Ruby on Rails.
MIT License
337 stars 28 forks source link

Allow multiple words for the conversion unit #76

Closed thegedge closed 7 years ago

thegedge commented 7 years ago

There are units that are more than one word, so we should have an interface that allows specifying these via conversion strings in units. In other words, we should support the following:

Length = Measured.build do
  unit :m, value: "1/1852 nautical miles"
end