Sha256: c0804a141e6432e188201ed010cf00ee601b959543eb96ee5a1ba457482f1620
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
# Handles the read and write of the runt file module Runter class Runtfile def initialize() @watchers = [] load_settings() end def load_settings() if !File.file?('Runtfile') raise 'You must created a Runtfile before running runter!' end JSON.parse(IO.read('Runtfile'))["watchers"].each {|watch| @watchers << Runter::Watcher.new(watch) } end def get_watchers() return @watchers end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
runter-0.1.0 | lib/runter/runtfile.rb |