class QV
Public Class Methods
notes_dir()
click to toggle source
# File lib/qv/qvconfig.rb, line 5 def self.notes_dir @@notes_dir end
read_config(args = {})
click to toggle source
# File lib/qv/qvconfig.rb, line 9 def self.read_config(args = {}) @@config_file = args[:config_file] if args[:config_file] if File.exist?(@@config_file) @@notes_dir = File.expand_path(File.read(@@config_file).match(/(?<=notes_dir = ).*$/)[0]) end end
set_notes_dir(args = {})
click to toggle source
# File lib/qv/qvconfig.rb, line 16 def self.set_notes_dir(args = {}) @@notes_dir = File.expand_path(args[:notes_dir]) end