Class: Foo
Instance Method Summary collapse
- #hello(it) ⇒ Object
-
#initialize(str) ⇒ Foo
constructor
A new instance of Foo.
- #to_s ⇒ Object
Methods included from DRb::DRbUndumped
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_s ⇒ Object
50 51 52 |
# File 'lib/drb/extserv.rb', line 50 def to_s @str end |