class RETerm::Config
Constants
- CONFIG_FILE
Public Class Methods
get()
click to toggle source
# File lib/reterm/config.rb, line 7 def self.get @config ||= begin return {} unless File.exist?(CONFIG_FILE) JSON.parse(File.read(CONFIG_FILE)) end end
load_plugins()
click to toggle source
# File lib/reterm/config.rb, line 15 def self.load_plugins return unless get.key?("plugins") get["plugins"].each { |p| require p } end