Skip to content

Compound unit support? #10

Description

@woahdae

I'm working on a sideproject that needs a lot of custom conversions, which is why I like ruby-measurement over ruby-units; the latter's code takes quite a lot of staring to grok, and ultimately the conversions are hard-coded, which I found odd (but maybe I don't know the problemspace well enough?).

In any case, ruby-measurement's code is easy to read and defining custom conversions is a no-brainer.

However, most of the units and conversions I'm working with are compound, like converting pounds/acre to oz/sq ft. For now I'll just define custom units and conversions for all the variations I'm using (not too onerous), but is there planned support for compound units that's more clever than brute-force defining every possibility?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions