Module: RemoteRuby::Extensions

Defined in:
lib/remote_ruby/extensions.rb

Overview

Module to include in the global scope to provide the ‘remotely` method

Instance Method Summary collapse

Instance Method Details

#remotely(args = {}, &block) ⇒ Object



8
9
10
11
12
# File 'lib/remote_ruby/extensions.rb', line 8

def remotely(args = {}, &block)
  locals = args.delete(:locals)
  execution_context = ::RemoteRuby::ExecutionContext.new(**args)
  execution_context.execute(locals, &block)
end