Class: Applocale::Config::LangPathComparisonResult
- Inherits:
-
LangPathComparison
- Object
- LangPathComparison
- Applocale::Config::LangPathComparisonResult
- Defined in:
- lib/applocale/Util/compare_util.rb
Instance Attribute Summary collapse
-
#duplicate_key ⇒ Object
Returns the value of attribute duplicate_key.
-
#filepath1 ⇒ Object
Returns the value of attribute filepath1.
-
#filepath2 ⇒ Object
Returns the value of attribute filepath2.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#mismatch ⇒ Object
Returns the value of attribute mismatch.
-
#missing_in_1 ⇒ Object
Returns the value of attribute missing_in_1.
-
#missing_in_2 ⇒ Object
Returns the value of attribute missing_in_2.
-
#not_same ⇒ Object
Returns the value of attribute not_same.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#warning ⇒ Object
Returns the value of attribute warning.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(langpath_comparison, warning = nil) ⇒ LangPathComparisonResult
constructor
A new instance of LangPathComparisonResult.
Constructor Details
#initialize(langpath_comparison, warning = nil) ⇒ LangPathComparisonResult
Returns a new instance of LangPathComparisonResult.
21 22 23 24 |
# File 'lib/applocale/Util/compare_util.rb', line 21 def initialize(langpath_comparison, warning = nil) super(langpath_comparison.platform, langpath_comparison.lang, langpath_comparison.filepath1, langpath_comparison.filepath2) self.warning = warning end |
Instance Attribute Details
#duplicate_key ⇒ Object
Returns the value of attribute duplicate_key.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def duplicate_key @duplicate_key end |
#filepath1 ⇒ Object
Returns the value of attribute filepath1.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def filepath1 @filepath1 end |
#filepath2 ⇒ Object
Returns the value of attribute filepath2.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def filepath2 @filepath2 end |
#lang ⇒ Object
Returns the value of attribute lang.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def lang @lang end |
#mismatch ⇒ Object
Returns the value of attribute mismatch.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def mismatch @mismatch end |
#missing_in_1 ⇒ Object
Returns the value of attribute missing_in_1.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def missing_in_1 @missing_in_1 end |
#missing_in_2 ⇒ Object
Returns the value of attribute missing_in_2.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def missing_in_2 @missing_in_2 end |
#not_same ⇒ Object
Returns the value of attribute not_same.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def not_same @not_same end |
#platform ⇒ Object
Returns the value of attribute platform.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def platform @platform end |
#warning ⇒ Object
Returns the value of attribute warning.
19 20 21 |
# File 'lib/applocale/Util/compare_util.rb', line 19 def warning @warning end |
Class Method Details
.init(platform, lang, filepath1, filepath2, not_same, duplicate_key, mismatch, missing_in_1, missing_in_2) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/applocale/Util/compare_util.rb', line 26 def self.init(platform, lang, filepath1, filepath2, not_same, duplicate_key, mismatch, missing_in_1, missing_in_2) langpath_comparison = LangPathComparison.init(platform, lang, filepath1, filepath2) result = LangPathComparisonResult.new(langpath_comparison) result.not_same = not_same result.duplicate_key = duplicate_key result.mismatch = mismatch result.missing_in_1 = missing_in_1 result.missing_in_2 = missing_in_2 result end |