class IrcLB::Config
Attributes
config[R]
Public Class Methods
new()
click to toggle source
# File lib/irclb/config.rb, line 7 def initialize @filename = Pathname.new(Dir.home).join('.irclb.json') begin @config = JSON.parse(IO.read(@filename)) rescue Errno::ENOENT => e puts "Was not able to load #{@filename}." exit(1) end end