Class: Applocale::Config::LangPathComparison

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

Direct Known Subclasses

LangPathComparisonResult

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#filepath1Object

Returns the value of attribute filepath1.



4
5
6
# File 'lib/applocale/Util/compare_util.rb', line 4

def filepath1
  @filepath1
end

#filepath2Object

Returns the value of attribute filepath2.



4
5
6
# File 'lib/applocale/Util/compare_util.rb', line 4

def filepath2
  @filepath2
end

#langObject

Returns the value of attribute lang.



4
5
6
# File 'lib/applocale/Util/compare_util.rb', line 4

def lang
  @lang
end

#platformObject

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