Class: Yamlt::LanguagePair
- Inherits:
-
Object
- Object
- Yamlt::LanguagePair
- Defined in:
- lib/yamlt/language_pair.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from: "en", to: "ru") ⇒ LanguagePair
constructor
A new instance of LanguagePair.
Constructor Details
#initialize(from: "en", to: "ru") ⇒ LanguagePair
Returns a new instance of LanguagePair.
8 9 10 11 |
# File 'lib/yamlt/language_pair.rb', line 8 def initialize(from: "en", to: "ru") @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
13 14 15 |
# File 'lib/yamlt/language_pair.rb', line 13 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
13 14 15 |
# File 'lib/yamlt/language_pair.rb', line 13 def to @to end |