File: hellolib.rb

package info (click to toggle)
ruby-gettext 3.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,084 kB
  • sloc: ruby: 10,461; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/ruby
# hellolib.rb
#
# Copyright (C) 2005-2009  Masao Mutoh
#
# This file is distributed under the same
# license as gettext.
#

require 'gettext'

class HelloLib
  include GetText
  bindtextdomain("hellolib", "locale")
  def hello
    _("This message is from hellolib.")
  end
end