Method: GetText::PoMessage#msgctxt?
- Defined in:
- lib/gettext/tools/pomessage.rb
#msgctxt? ⇒ Boolean
Returns true if the type is kind of msgctxt. And if this is a kind of msgctxt and msgctxt property is nil, then raise an RuntimeException.
130 131 132 133 134 135 |
# File 'lib/gettext/tools/pomessage.rb', line 130 def msgctxt? if [:msgctxt, :msgctxt_plural].include? @type raise "This PoMessage is a kind of msgctxt but the msgctxt property is nil. msgid: #{msgid}" unless @msgctxt true end end |