Class: Unodos::DifferentialBase

Inherits:
Object
  • Object
show all
Defined in:
lib/unodos/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_levelObject (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_sObject Also known as: inspect



24
25
26
# File 'lib/unodos/base.rb', line 24

def to_s
  "a[n-#{differential_level}]"
end