Class: Foo

Inherits:
Object
  • Object
show all
Includes:
DRb::DRbUndumped
Defined in:
lib/drb/extserv.rb

Instance Method Summary collapse

Methods included from DRb::DRbUndumped

#_dump

Constructor Details

#initialize(str) ⇒ Foo

Returns a new instance of Foo.



42
43
44
# File 'lib/drb/extserv.rb', line 42

def initialize(str)
  @str = str
end

Instance Method Details

#hello(it) ⇒ Object



46
47
48
# File 'lib/drb/extserv.rb', line 46

def hello(it)
  "#{it}: #{self}"
end

#to_sObject



50
51
52
# File 'lib/drb/extserv.rb', line 50

def to_s
  @str
end