Class: Applocale::Config::LangPathComparisonResult

Inherits:
LangPathComparison show all
Defined in:
lib/applocale/Util/compare_util.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_keyObject

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

#filepath1Object

Returns the value of attribute filepath1.



19
20
21
# File 'lib/applocale/Util/compare_util.rb', line 19

def filepath1
  @filepath1
end

#filepath2Object

Returns the value of attribute filepath2.



19
20
21
# File 'lib/applocale/Util/compare_util.rb', line 19

def filepath2
  @filepath2
end

#langObject

Returns the value of attribute lang.



19
20
21
# File 'lib/applocale/Util/compare_util.rb', line 19

def lang
  @lang
end

#mismatchObject

Returns the value of attribute mismatch.



19
20
21
# File 'lib/applocale/Util/compare_util.rb', line 19

def mismatch
  @mismatch
end

#missing_in_1Object

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_2Object

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_sameObject

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

#platformObject

Returns the value of attribute platform.



19
20
21
# File 'lib/applocale/Util/compare_util.rb', line 19

def platform
  @platform
end

#warningObject

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