summaryrefslogtreecommitdiff
path: root/sample/drb/dqlib.rb
blob: 75f2e6115b782931e83697a96d159c60a7065209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class DQEntry
  def initialize(name)
    @name = name
  end

  def greeting
    "Hello, This is #{@name}."
  end
  alias to_s greeting
end

if __FILE__ == $0
  puts DQEntry.new('DQEntry')
end