Class: Any2Tmx::PhraseSet
- Inherits:
-
Object
- Object
- Any2Tmx::PhraseSet
- Defined in:
- lib/any2tmx/phrase_set.rb
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#traversable ⇒ Object
readonly
Returns the value of attribute traversable.
Instance Method Summary collapse
-
#initialize(traversable, locale) ⇒ PhraseSet
constructor
A new instance of PhraseSet.
- #zip(other_set, &block) ⇒ Object
Constructor Details
#initialize(traversable, locale) ⇒ PhraseSet
Returns a new instance of PhraseSet.
5 6 7 8 |
# File 'lib/any2tmx/phrase_set.rb', line 5 def initialize(traversable, locale) @traversable = traversable @locale = locale end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
3 4 5 |
# File 'lib/any2tmx/phrase_set.rb', line 3 def locale @locale end |
#traversable ⇒ Object (readonly)
Returns the value of attribute traversable.
3 4 5 |
# File 'lib/any2tmx/phrase_set.rb', line 3 def traversable @traversable end |
Instance Method Details
#zip(other_set, &block) ⇒ Object
10 11 12 |
# File 'lib/any2tmx/phrase_set.rb', line 10 def zip(other_set, &block) traversable.zip(other_set.traversable, &block) end |