Skip to content

jrobertson/onedrb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the onedrb gem

Server usage

require 'onedrb'

class Fun
  def go(s, age: '22')
    "hello %s; age: %s" % [s, age]
  end
end

fun = OneDrb::Server.new host: '127.0.0.1', port: '57844', obj: Fun.new
fun.start

Client usage

require 'onedrb'

fun = OneDrb::Client.new host: '127.0.0.1', port: '57844'
fun.go 'James', age: '34'
#=> "hello James; age: 34"

Resources

drb onedrb gem remote connection object

About

Makes it convenient to make an object remotely accessible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages