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.



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

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

Instance Attribute Details

#filepathObject

Returns the value of attribute filepath.



60
61
62
# File 'lib/applocale/Core/setting.rb', line 60

def filepath
  @filepath
end

#langObject

Returns the value of attribute lang.



60
61
62
# File 'lib/applocale/Core/setting.rb', line 60

def lang
  @lang
end

Instance Method Details

#to_sObject



67
68
69
# File 'lib/applocale/Core/setting.rb', line 67

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