Class: Konjak::Translator::TranslatedString
- Inherits:
-
String
- Object
- String
- Konjak::Translator::TranslatedString
- Defined in:
- lib/konjak/translator/translated_string.rb
Instance Attribute Summary collapse
-
#source_str ⇒ Object
Returns the value of attribute source_str.
Instance Method Summary collapse
-
#initialize(str, source_str) ⇒ TranslatedString
constructor
A new instance of TranslatedString.
Constructor Details
#initialize(str, source_str) ⇒ TranslatedString
Returns a new instance of TranslatedString.
6 7 8 9 |
# File 'lib/konjak/translator/translated_string.rb', line 6 def initialize(str, source_str) super(str) @source_str = source_str end |
Instance Attribute Details
#source_str ⇒ Object
Returns the value of attribute source_str.
4 5 6 |
# File 'lib/konjak/translator/translated_string.rb', line 4 def source_str @source_str end |