Class: WolfTrans::Translation
- Inherits:
-
Object
- Object
- WolfTrans::Translation
- Defined in:
- lib/wolftrans.rb
Overview
Represents a translated string
Instance Attribute Summary collapse
-
#autogenerate ⇒ Object
(also: #autogenerate?)
Returns the value of attribute autogenerate.
-
#patch_filename ⇒ Object
readonly
Returns the value of attribute patch_filename.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(patch_filename, string = '', autogenerate = true) ⇒ Translation
constructor
A new instance of Translation.
- #to_s ⇒ Object
Constructor Details
#initialize(patch_filename, string = '', autogenerate = true) ⇒ Translation
Returns a new instance of Translation.
24 25 26 27 28 |
# File 'lib/wolftrans.rb', line 24 def initialize(patch_filename, string='', autogenerate=true) @patch_filename = patch_filename @string = string @autogenerate = autogenerate end |
Instance Attribute Details
#autogenerate ⇒ Object Also known as: autogenerate?
Returns the value of attribute autogenerate.
21 22 23 |
# File 'lib/wolftrans.rb', line 21 def autogenerate @autogenerate end |
#patch_filename ⇒ Object (readonly)
Returns the value of attribute patch_filename.
19 20 21 |
# File 'lib/wolftrans.rb', line 19 def patch_filename @patch_filename end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
20 21 22 |
# File 'lib/wolftrans.rb', line 20 def string @string end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/wolftrans.rb', line 30 def to_s @string end |