Exception: GetText::NoboundTextDomainError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/gettext.rb

Overview

If the textdomain isn’t bound when calling GetText.textdomain, this error is raised.

Instance Method Summary collapse

Constructor Details

#initialize(domainname) ⇒ NoboundTextDomainError

Returns a new instance of NoboundTextDomainError.



34
35
36
# File 'lib/gettext.rb', line 34

def initialize(domainname)
  @domainname = domainname
end

Instance Method Details

#messageObject



37
38
39
# File 'lib/gettext.rb', line 37

def message
  "#{@domainname} is not bound."
end