class GtkApp::Config

Constants

PATH

Attributes

file[R]
hash[R]

Public Class Methods

new(name) click to toggle source
# File lib/gtk_app/config.rb, line 9
def initialize(name)
  Dir.mkdir(PATH) unless Dir.exist?(PATH)
end

Public Instance Methods

save() click to toggle source
# File lib/gtk_app/config.rb, line 13
def save
  # File.open(@file, 'w') { |fp| fp.write(@hash.to_json) }
  
end