Class: Object

Inherits:
BasicObject
Defined in:
lib/pry-remote-em.rb

Instance Method Summary collapse

Instance Method Details

#remote_pry_em(host = nil, port = nil, options = {}, &block) ⇒ Object Also known as: pry_remote_em



30
31
32
33
34
35
# File 'lib/pry-remote-em.rb', line 30

def remote_pry_em(host = nil, port = nil, options = {}, &block)
  host, options = nil, host if host.kind_of?(Hash) # Support for options hash as first argument instead of third

  options = { target: self, host: host, port: port }.merge(options)
  PryRemoteEm::Server.run(options, &block)
end