Class: Applocale::Config::LangPathComparison
- Inherits:
-
Object
- Object
- Applocale::Config::LangPathComparison
- Defined in:
- lib/applocale/Util/compare_util.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#filepath1 ⇒ Object
Returns the value of attribute filepath1.
-
#filepath2 ⇒ Object
Returns the value of attribute filepath2.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#platform ⇒ Object
Returns the value of attribute platform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(platform, lang, filepath1, filepath2) ⇒ LangPathComparison
constructor
A new instance of LangPathComparison.
Constructor Details
#initialize(platform, lang, filepath1, filepath2) ⇒ LangPathComparison
Returns a new instance of LangPathComparison.
6 7 8 9 10 11 |
# File 'lib/applocale/Util/compare_util.rb', line 6 def initialize(platform, lang, filepath1, filepath2) self.platform = platform self.lang = lang self.filepath1 = filepath1 self.filepath2 = filepath2 end |
Instance Attribute Details
#filepath1 ⇒ Object
Returns the value of attribute filepath1.
4 5 6 |
# File 'lib/applocale/Util/compare_util.rb', line 4 def filepath1 @filepath1 end |
#filepath2 ⇒ Object
Returns the value of attribute filepath2.
4 5 6 |
# File 'lib/applocale/Util/compare_util.rb', line 4 def filepath2 @filepath2 end |
#lang ⇒ Object
Returns the value of attribute lang.
4 5 6 |
# File 'lib/applocale/Util/compare_util.rb', line 4 def lang @lang end |
#platform ⇒ Object
Returns the value of attribute platform.
4 5 6 |
# File 'lib/applocale/Util/compare_util.rb', line 4 def platform @platform end |
Class Method Details
.init(platform, lang, filepath1, filepath2) ⇒ Object
13 14 15 |
# File 'lib/applocale/Util/compare_util.rb', line 13 def self.init(platform, lang, filepath1, filepath2) LangPathComparison.new(platform, lang, filepath1, filepath2) end |