Class: RSpec::EM::FakeClock::Timeout
- Inherits:
-
Object
- Object
- RSpec::EM::FakeClock::Timeout
- Includes:
- Comparable
- Defined in:
- lib/rspec/eventmachine/fake_clock.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
-
#repeat ⇒ Object
readonly
Returns the value of attribute repeat.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(block, interval, repeat) ⇒ Timeout
constructor
A new instance of Timeout.
Constructor Details
#initialize(block, interval, repeat) ⇒ Timeout
Returns a new instance of Timeout.
40 41 42 43 44 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 40 def initialize(block, interval, repeat) @block = block @interval = interval @repeat = repeat end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
38 39 40 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 38 def block @block end |
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
38 39 40 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 38 def interval @interval end |
#repeat ⇒ Object (readonly)
Returns the value of attribute repeat.
38 39 40 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 38 def repeat @repeat end |
#time ⇒ Object
Returns the value of attribute time.
37 38 39 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 37 def time @time end |
Instance Method Details
#<=>(other) ⇒ Object
46 47 48 |
# File 'lib/rspec/eventmachine/fake_clock.rb', line 46 def <=>(other) @time - other.time end |