Method: Zoidberg::SoftShell::AsyncProxy#method_missing

Defined in:
lib/zoidberg/shell.rb

#method_missing(*args, &block) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/zoidberg/shell.rb', line 16

def method_missing(*args, &block)
  target._zoidberg_thread(
    Thread.new{
      begin
        target.send(*args, &block)
      rescue Exception => e
        target._zoidberg_proxy.send(:raise, e)
      end
    }
  )
  nil
end