Class: Unodos::DifferentialBase
- Inherits:
-
Object
- Object
- Unodos::DifferentialBase
- Defined in:
- lib/unodos/base.rb
Instance Attribute Summary collapse
-
#differential_level ⇒ Object
readonly
Returns the value of attribute differential_level.
Instance Method Summary collapse
-
#initialize(level) ⇒ DifferentialBase
constructor
A new instance of DifferentialBase.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(level) ⇒ DifferentialBase
Returns a new instance of DifferentialBase.
20 21 22 |
# File 'lib/unodos/base.rb', line 20 def initialize(level) @differential_level = level end |
Instance Attribute Details
#differential_level ⇒ Object (readonly)
Returns the value of attribute differential_level.
19 20 21 |
# File 'lib/unodos/base.rb', line 19 def differential_level @differential_level end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
24 25 26 |
# File 'lib/unodos/base.rb', line 24 def to_s "a[n-#{differential_level}]" end |