Class: Pulo::SI_Unit
Instance Attribute Summary collapse
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
Attributes inherited from Unit
Instance Method Summary collapse
-
#initialize(name, plural, abbreviation, scale) ⇒ SI_Unit
constructor
A new instance of SI_Unit.
- #is_si? ⇒ Boolean
Methods inherited from Unit
Constructor Details
#initialize(name, plural, abbreviation, scale) ⇒ SI_Unit
Returns a new instance of SI_Unit.
30 31 32 33 |
# File 'lib/pulo/quantity/unit.rb', line 30 def initialize(name, plural, abbreviation, scale) super name, plural, abbreviation @scale=scale end |
Instance Attribute Details
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
29 30 31 |
# File 'lib/pulo/quantity/unit.rb', line 29 def scale @scale end |
Instance Method Details
#is_si? ⇒ Boolean
34 |
# File 'lib/pulo/quantity/unit.rb', line 34 def is_si?; true; end |