File: dqlib.rb

package info (click to toggle)
drb 2.0.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 492 kB
  • ctags: 697
  • sloc: ruby: 5,132; makefile: 45
file content (14 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (24)
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