Class: GetText::Tools::MsgMerge::Config
- Inherits:
-
Object
- Object
- GetText::Tools::MsgMerge::Config
- Defined in:
- lib/gettext/tools/msgmerge.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#backup ⇒ Object
update mode options.
-
#defpo ⇒ Object
Returns the value of attribute defpo.
-
#fuzzy ⇒ Object
Returns the value of attribute fuzzy.
-
#output ⇒ Object
Returns the value of attribute output.
-
#refpot ⇒ Object
Returns the value of attribute refpot.
-
#suffix ⇒ Object
update mode options.
-
#update ⇒ Object
Returns the value of attribute update.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
The result is written back to def.po.
Constructor Details
#initialize ⇒ Config
The result is written back to def.po.
--backup=CONTROL make a backup of def.po
--suffix=SUFFIX override the usual backup suffix
The version control method may be selected via the –backup option or through the VERSION_CONTROL environment variable. Here are the values:
none, off never make backups (even if --backup is given)
numbered, t make numbered backups
existing, nil numbered if numbered backups exist, simple otherwise
simple, never always make simple backups
The backup suffix is ‘~’, unless set with –suffix or the SIMPLE_BACKUP_SUFFIX environment variable.
418 419 420 421 422 423 424 425 |
# File 'lib/gettext/tools/msgmerge.rb', line 418 def initialize @output = nil @fuzzy = nil @update = nil @backup = ENV["VERSION_CONTROL"] @suffix = ENV["SIMPLE_BACKUP_SUFFIX"] || "~" @input_dirs = ["."] end |
Instance Attribute Details
#backup ⇒ Object
update mode options
403 404 405 |
# File 'lib/gettext/tools/msgmerge.rb', line 403 def backup @backup end |
#defpo ⇒ Object
Returns the value of attribute defpo.
400 401 402 |
# File 'lib/gettext/tools/msgmerge.rb', line 400 def defpo @defpo end |
#fuzzy ⇒ Object
Returns the value of attribute fuzzy.
400 401 402 |
# File 'lib/gettext/tools/msgmerge.rb', line 400 def fuzzy @fuzzy end |
#output ⇒ Object
Returns the value of attribute output.
400 401 402 |
# File 'lib/gettext/tools/msgmerge.rb', line 400 def output @output end |
#refpot ⇒ Object
Returns the value of attribute refpot.
400 401 402 |
# File 'lib/gettext/tools/msgmerge.rb', line 400 def refpot @refpot end |
#suffix ⇒ Object
update mode options
403 404 405 |
# File 'lib/gettext/tools/msgmerge.rb', line 403 def suffix @suffix end |
#update ⇒ Object
Returns the value of attribute update.
400 401 402 |
# File 'lib/gettext/tools/msgmerge.rb', line 400 def update @update end |