Class: Going::SelectHelper
- Inherits:
-
Object
- Object
- Going::SelectHelper
- Includes:
- Singleton
- Defined in:
- lib/going/select_helper.rb
Overview
Helper methods to emulate Go’s Select Cases.
Instance Method Summary collapse
-
#default(&blk) ⇒ Object
A case statement that will succeed immediately.
-
#timeout(seconds, &blk) ⇒ Object
A case statement that will succeed after
seconds
seconds.