module Nocion::Config

Public Class Methods

key() click to toggle source
# File lib/nocion/config.rb, line 9
def key
  @cfg['key']
end
read!() click to toggle source
# File lib/nocion/config.rb, line 4
def read!
  path = File.join(ENV['HOME'], '.nocion.json')
  @cfg = File.exists?(path) ? JSON.parse(File.read(path)) : {}
end