Sha256: 9ca7198731441fe23029868fa03837edf0f1972c37c5f0c7247151e9b1448c37
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
# coding: utf-8 module Valuevaluevalue class Unit attr_accessor :name, :abbreviation def initialize(name, abbreviation) @name = name @abbreviation = abbreviation end end class MassUnit < Unit attr_accessor :mass_in_kg def initialize(name, abbreviation, mass_in_kg) super(name, abbreviation) @mass_in_kg = mass_in_kg end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
valuevaluevalue-0.1.1 | lib/valuevaluevalue/unit.rb |
valuevaluevalue-0.1.0 | lib/valuevaluevalue/unit.rb |