Sha256: 7f4ab7ead69bf09b174213dcf629d2ea34cd994f2c68a1629a3be10fa7f50b71

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

module Unitwise
  class Prefix < Base
    attr_reader :scalar

    def self.data
      @data ||= YAML::load File.open(data_file)
    end

    def self.data_file
      Unitwise.data_file 'prefix'
    end

    def scalar=(value)
      @scalar = value.to_f
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unitwise-0.3.0 lib/unitwise/prefix.rb
unitwise-0.2.2 lib/unitwise/prefix.rb
unitwise-0.2.1 lib/unitwise/prefix.rb
unitwise-0.2.0 lib/unitwise/prefix.rb
unitwise-0.1.0 lib/unitwise/prefix.rb