Class: RubyKpi::Literal

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

Overview

The Literal class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Literal

constructor



43
44
45
# File 'lib/DataStructures.rb', line 43

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

accessor



40
41
42
# File 'lib/DataStructures.rb', line 40

def value
  @value
end

Instance Method Details

#to_strObject

to string



48
49
50
# File 'lib/DataStructures.rb', line 48

def to_str()
  return @value
end