lib/measured/base.rb in measured-2.0.0.pre3 vs lib/measured/base.rb in measured-2.0.0.pre4
- old
+ new
@@ -4,12 +4,12 @@
module Measured
class UnitError < StandardError ; end
class << self
- def build(**kwargs, &block)
- builder = UnitSystemBuilder.new(**kwargs)
+ def build(&block)
+ builder = UnitSystemBuilder.new
builder.instance_eval(&block)
Class.new(Measurable) do
class << self
attr_reader :unit_system
@@ -36,12 +36,11 @@
end
end
end
require "measured/arithmetic"
+require "measured/parser"
require "measured/unit"
require "measured/unit_system"
-require "measured/case_insensitive_unit"
-require "measured/case_insensitive_unit_system"
require "measured/unit_system_builder"
require "measured/conversion_table"
require "measured/measurable"