Class: Applocale::Config::Setting

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathstrObject

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_fileObject

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_formatObject

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_toObject

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_pathObject

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_keyObject

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_listObject

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

Returns the value of attribute link.



26
27
28
# File 'lib/applocale/Core/setting.rb', line 26

def link
  @link
end

#platformObject

Returns the value of attribute platform.



26
27
28
# File 'lib/applocale/Core/setting.rb', line 26

def platform
  @platform
end

#resource_folderObject

Returns the value of attribute resource_folder.



26
27
28
# File 'lib/applocale/Core/setting.rb', line 26

def resource_folder
  @resource_folder
end

#rubycodeObject

Returns the value of attribute rubycode.



26
27
28
# File 'lib/applocale/Core/setting.rb', line 26

def rubycode
  @rubycode
end

#sheet_obj_listObject

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

#xlsxpathObject

Returns the value of attribute xlsxpath.



26
27
28
# File 'lib/applocale/Core/setting.rb', line 26

def xlsxpath
  @xlsxpath
end

Instance Method Details

#printlogObject



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