Class: TemperatureReadCommandline
- Inherits:
-
Object
- Object
- TemperatureReadCommandline
- Defined in:
- lib/temperature_read_commandline.rb
Instance Attribute Summary collapse
-
#temp ⇒ Object
readonly
Returns the value of attribute temp.
Class Method Summary collapse
-
.commandline_temperature(temp) ⇒ Object
——————————————————————— reading.
Instance Method Summary collapse
-
#initialize ⇒ TemperatureReadCommandline
constructor
A new instance of TemperatureReadCommandline.
Constructor Details
#initialize ⇒ TemperatureReadCommandline
Returns a new instance of TemperatureReadCommandline.
11 12 13 |
# File 'lib/temperature_read_commandline.rb', line 11 def initialize @temp = 0 end |
Instance Attribute Details
#temp ⇒ Object (readonly)
Returns the value of attribute temp.
9 10 11 |
# File 'lib/temperature_read_commandline.rb', line 9 def temp @temp end |
Class Method Details
.commandline_temperature(temp) ⇒ Object
reading
17 18 19 20 |
# File 'lib/temperature_read_commandline.rb', line 17 def self.commandline_temperature temp temp = temp temp end |