Class: RubyKpi::Literal
- Inherits:
-
Object
- Object
- RubyKpi::Literal
- Defined in:
- lib/DataStructures.rb
Overview
The Literal class
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
accessor.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
constructor.
-
#to_str ⇒ Object
to string.
Constructor Details
#initialize(value) ⇒ Literal
constructor
43 44 45 |
# File 'lib/DataStructures.rb', line 43 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
accessor
40 41 42 |
# File 'lib/DataStructures.rb', line 40 def value @value end |
Instance Method Details
#to_str ⇒ Object
to string
48 49 50 |
# File 'lib/DataStructures.rb', line 48 def to_str() return @value end |