Class: Rossoc::Ir::Rsleep
- Inherits:
-
Object
- Object
- Rossoc::Ir::Rsleep
- Defined in:
- lib/rossoc/ir.rb
Overview
RSLEEP
Instance Attribute Summary collapse
-
#second ⇒ Object
readonly
Returns the value of attribute second.
Instance Method Summary collapse
-
#initialize(second) ⇒ Rsleep
constructor
A new instance of Rsleep.
- #millisecond ⇒ Object
- #positive? ⇒ Boolean
Constructor Details
#initialize(second) ⇒ Rsleep
Returns a new instance of Rsleep.
62 63 64 |
# File 'lib/rossoc/ir.rb', line 62 def initialize(second) @second = second end |
Instance Attribute Details
#second ⇒ Object (readonly)
Returns the value of attribute second.
70 71 72 |
# File 'lib/rossoc/ir.rb', line 70 def second @second end |
Instance Method Details
#millisecond ⇒ Object
72 73 74 |
# File 'lib/rossoc/ir.rb', line 72 def millisecond (@second * 1000).to_i end |
#positive? ⇒ Boolean
66 67 68 |
# File 'lib/rossoc/ir.rb', line 66 def positive? @second.positive? end |