Sha256: c474d2a59276856ac7016a46edab2f1f1344bad1871fce235a4037a5396ec0bb
Contents?: true
Size: 966 Bytes
Versions: 3
Compression:
Stored size: 966 Bytes
Contents
# -*- encoding: utf-8 -*- # -*- frozen_string_literal: true -*- # -*- warn_indent: true -*- require "active_support/all" require "unit_measurements/version" module UnitMeasurements class << self def build(&block) builder = UnitGroupBuilder.new builder.instance_eval(&block) Class.new(Measurement) do class << self attr_reader :unit_group end @unit_group = builder.build end end end end require "unit_measurements/unit_group_builder" require "unit_measurements/unit" require "unit_measurements/unit_group" require "unit_measurements/arithmetic" require "unit_measurements/comparison" require "unit_measurements/normalizer" require "unit_measurements/parser" require "unit_measurements/formatter" require "unit_measurements/measurement" require "unit_measurements/errors/unit_error" require "unit_measurements/errors/unit_already_defined_error" require "unit_measurements/errors/parse_error"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unit_measurements-1.5.1 | lib/unit_measurements/base.rb |
unit_measurements-1.5.0 | lib/unit_measurements/base.rb |
unit_measurements-1.4.0 | lib/unit_measurements/base.rb |