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.



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

def initialize(str)
  @str = str
end

Instance Method Details

#hello(it) ⇒ Object



55
56
57
# File 'lib/drb/extserv.rb', line 55

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

#to_sObject



59
60
61
# File 'lib/drb/extserv.rb', line 59

def to_s
  @str
end