Class: Applocale::Config::LangPath

Inherits:
Object
  • Object
show all
Defined in:
lib/applocale/Core/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lang, filepath) ⇒ LangPath

Returns a new instance of LangPath.



57
58
59
60
# File 'lib/applocale/Core/setting.rb', line 57

def initialize(lang, filepath)
  self.lang = lang
  self.filepath = filepath
end

Instance Attribute Details

#filepathObject

Returns the value of attribute filepath.



55
56
57
# File 'lib/applocale/Core/setting.rb', line 55

def filepath
  @filepath
end

#langObject

Returns the value of attribute lang.



55
56
57
# File 'lib/applocale/Core/setting.rb', line 55

def lang
  @lang
end

Instance Method Details

#to_sObject



62
63
64
# File 'lib/applocale/Core/setting.rb', line 62

def to_s
  return "#{self.lang}:  #{self.filepath}"
end