Class: Applocale::Config::LangPath
- Inherits:
-
Object
- Object
- Applocale::Config::LangPath
- Defined in:
- lib/applocale/Core/setting.rb
Instance Attribute Summary collapse
-
#filepath ⇒ Object
Returns the value of attribute filepath.
-
#lang ⇒ Object
Returns the value of attribute lang.
Instance Method Summary collapse
-
#initialize(lang, filepath) ⇒ LangPath
constructor
A new instance of LangPath.
- #to_s ⇒ Object
Constructor Details
#initialize(lang, filepath) ⇒ LangPath
62 63 64 65 |
# File 'lib/applocale/Core/setting.rb', line 62 def initialize(lang, filepath) self.lang = lang self.filepath = filepath end |
Instance Attribute Details
#filepath ⇒ Object
Returns the value of attribute filepath.
60 61 62 |
# File 'lib/applocale/Core/setting.rb', line 60 def filepath @filepath end |
#lang ⇒ Object
Returns the value of attribute lang.
60 61 62 |
# File 'lib/applocale/Core/setting.rb', line 60 def lang @lang end |
Instance Method Details
#to_s ⇒ Object
67 68 69 |
# File 'lib/applocale/Core/setting.rb', line 67 def to_s return "#{self.lang}: #{self.filepath}" end |