File: hellolib.rb

package info (click to toggle)
ruby-gettext 3.0.2-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 4,728 kB
  • sloc: ruby: 7,977; 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