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.



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_pathstrObject

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_pathObject

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_listObject

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

Returns the value of attribute link.



24
25
26
# File 'lib/applocale/Core/setting.rb', line 24

def link
  @link
end

#platformObject

Returns the value of attribute platform.



24
25
26
# File 'lib/applocale/Core/setting.rb', line 24

def platform
  @platform
end

#rubycodeObject

Returns the value of attribute rubycode.



24
25
26
# File 'lib/applocale/Core/setting.rb', line 24

def rubycode
  @rubycode
end

#sheet_obj_listObject

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

#xlsxpathObject

Returns the value of attribute xlsxpath.



24
25
26
# File 'lib/applocale/Core/setting.rb', line 24

def xlsxpath
  @xlsxpath
end

Instance Method Details

#printlogObject



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