Module: Trepan::ThreadHelper
- Defined in:
- app/thread.rb
Class Method Summary collapse
-
.get_thread(num) ⇒ Object
Return the thread at position num or object_id num.
Class Method Details
.get_thread(num) ⇒ Object
Return the thread at position num or object_id num.
5 6 7 8 |
# File 'app/thread.rb', line 5 def get_thread(num) Thread.list.at(num) || Thread.list.detect {|t| t.object_id == num} end |