Class: Applocale::Config::Setting
- Inherits:
-
Object
- Object
- Applocale::Config::Setting
- Defined in:
- lib/applocale/Core/setting.rb
Instance Attribute Summary collapse
-
#configfile_pathstr ⇒ Object
Returns the value of attribute configfile_pathstr.
-
#google_credentials_path ⇒ Object
Returns the value of attribute google_credentials_path.
-
#lang_path_list ⇒ Object
Returns the value of attribute lang_path_list.
-
#link ⇒ Object
Returns the value of attribute link.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#rubycode ⇒ Object
Returns the value of attribute rubycode.
-
#sheet_obj_list ⇒ Object
Returns the value of attribute sheet_obj_list.
-
#xlsxpath ⇒ Object
Returns the value of attribute xlsxpath.
Instance Method Summary collapse
-
#initialize(configfile_pathstr) ⇒ Setting
constructor
A new instance of Setting.
- #printlog ⇒ Object
Constructor Details
#initialize(configfile_pathstr) ⇒ Setting
Returns a new instance of Setting.
25 26 27 28 29 |
# File 'lib/applocale/Core/setting.rb', line 25 def initialize(configfile_pathstr) self.configfile_pathstr = configfile_pathstr self.lang_path_list = Array.new self.sheet_obj_list = Array.new end |
Instance Attribute Details
#configfile_pathstr ⇒ Object
Returns the value of attribute configfile_pathstr.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def configfile_pathstr @configfile_pathstr end |
#google_credentials_path ⇒ Object
Returns the value of attribute google_credentials_path.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def google_credentials_path @google_credentials_path end |
#lang_path_list ⇒ Object
Returns the value of attribute lang_path_list.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def lang_path_list @lang_path_list end |
#link ⇒ Object
Returns the value of attribute link.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def link @link end |
#platform ⇒ Object
Returns the value of attribute platform.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def platform @platform end |
#rubycode ⇒ Object
Returns the value of attribute rubycode.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def rubycode @rubycode end |
#sheet_obj_list ⇒ Object
Returns the value of attribute sheet_obj_list.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def sheet_obj_list @sheet_obj_list end |
#xlsxpath ⇒ Object
Returns the value of attribute xlsxpath.
24 25 26 |
# File 'lib/applocale/Core/setting.rb', line 24 def xlsxpath @xlsxpath end |
Instance Method Details
#printlog ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/applocale/Core/setting.rb', line 31 def printlog puts ' In Setting' puts " link = #{self.link}" puts " platform = #{self.platform}" puts " xlsxpath = #{self.xlsxpath}" puts " google_credentials_path = #{self.google_credentials_path} " puts " lang_path_list = " self.lang_path_list.each do |langpath_obj| puts " #{langpath_obj.to_s}" end puts " sheet_obj_list = " self.sheet_obj_list.each do |sheet_obj| puts " #{sheet_obj.to_s}" end # puts self.rubycode end |