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.
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_s ⇒ Object
59 60 61 |
# File 'lib/drb/extserv.rb', line 59 def to_s @str end |