Shopify / measured

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

Rename and move up the ConversionTableBuilder #110

Closed kmcphillips closed 6 years ago

kmcphillips commented 6 years ago

This is a preliminary refactor and naming change also to help with a change #103 I've got in the works.

It renames ConversionTable to ConversionTableBuilder, because really the class builds the table and the table is the data structure returned from .to_h.

Also initialize it in the constructor, to pull out a same level of abstraction.

No functional or behaviour change.