Class: PrayRemote::ThreadWrapper
- Includes:
- DRab::DRabUndumped
- Defined in:
- lib/pray-remote/pray-remote.rb
Instance Method Summary collapse
-
#initialize(o) ⇒ ThreadWrapper
constructor
A new instance of ThreadWrapper.
- #nil? ⇒ Boolean
- #run ⇒ Object
Constructor Details
#initialize(o) ⇒ ThreadWrapper
Returns a new instance of ThreadWrapper.
86 87 88 |
# File 'lib/pray-remote/pray-remote.rb', line 86 def initialize(o) @thread = o end |
Instance Method Details
#nil? ⇒ Boolean
94 95 96 |
# File 'lib/pray-remote/pray-remote.rb', line 94 def nil? @thread.nil? end |
#run ⇒ Object
90 91 92 |
# File 'lib/pray-remote/pray-remote.rb', line 90 def run ThreadWrapper.new(@thread.run) end |