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.
-
#convert_file ⇒ Object
Returns the value of attribute convert_file.
-
#export_format ⇒ Object
Returns the value of attribute export_format.
-
#export_to ⇒ Object
Returns the value of attribute export_to.
-
#google_credentials_path ⇒ Object
Returns the value of attribute google_credentials_path.
-
#is_skip_empty_key ⇒ Object
Returns the value of attribute is_skip_empty_key.
-
#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.
-
#resource_folder ⇒ Object
Returns the value of attribute resource_folder.
-
#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.
27 28 29 30 31 |
# File 'lib/applocale/Core/setting.rb', line 27 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.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def configfile_pathstr @configfile_pathstr end |
#convert_file ⇒ Object
Returns the value of attribute convert_file.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def convert_file @convert_file end |
#export_format ⇒ Object
Returns the value of attribute export_format.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def export_format @export_format end |
#export_to ⇒ Object
Returns the value of attribute export_to.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def export_to @export_to end |
#google_credentials_path ⇒ Object
Returns the value of attribute google_credentials_path.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def google_credentials_path @google_credentials_path end |
#is_skip_empty_key ⇒ Object
Returns the value of attribute is_skip_empty_key.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def is_skip_empty_key @is_skip_empty_key end |
#lang_path_list ⇒ Object
Returns the value of attribute lang_path_list.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def lang_path_list @lang_path_list end |
#link ⇒ Object
Returns the value of attribute link.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def link @link end |
#platform ⇒ Object
Returns the value of attribute platform.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def platform @platform end |
#resource_folder ⇒ Object
Returns the value of attribute resource_folder.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def resource_folder @resource_folder end |
#rubycode ⇒ Object
Returns the value of attribute rubycode.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def rubycode @rubycode end |
#sheet_obj_list ⇒ Object
Returns the value of attribute sheet_obj_list.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def sheet_obj_list @sheet_obj_list end |
#xlsxpath ⇒ Object
Returns the value of attribute xlsxpath.
26 27 28 |
# File 'lib/applocale/Core/setting.rb', line 26 def xlsxpath @xlsxpath end |
Instance Method Details
#printlog ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/applocale/Core/setting.rb', line 33 def printlog puts ' In Setting' puts " link = #{self.link}" puts " platform = #{self.platform}" puts " resource_folder = #{self.resource_folder}" 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 " export_format: #{export_format}" puts " export_to: #{export_to}" puts " is_skip_empty_key: #{self.is_skip_empty_key} " puts " convertFile: #{self.convert_file.filepath}" # puts self.rubycode end |