Class: PrayRemote::ThreadWrapper

Inherits:
Object
  • Object
show all
Includes:
DRab::DRabUndumped
Defined in:
lib/pray-remote/pray-remote.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


94
95
96
# File 'lib/pray-remote/pray-remote.rb', line 94

def nil?
  @thread.nil?
end

#runObject



90
91
92
# File 'lib/pray-remote/pray-remote.rb', line 90

def run
  ThreadWrapper.new(@thread.run)
end