Sha256: 5a6fb4cfd92847485119432fba136446f0fdde2f9d99a147fad1dd4addf9d638
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
Rule = Struct.new(:pattern, :event_type, :proc) class G class << self attr_accessor :options attr_accessor :pwd attr_accessor :pwd_length attr_accessor :script attr_accessor :scriptname def init(options, argv) @options = options @scriptname = File.expand_path(argv.first || ".watchr") @pwd = Dir.pwd @pwd_length = @pwd.length puts "*** Cuco starts at #{Time.now}" if @options[:debug] print if @options[:debug] end def print puts "*** options #{@options}" puts "*** pwd <#{@pwd}>" puts "*** pwd_length <#{@pwd_length}>" puts "*** scriptname <#{@scriptname}>" puts "*** script <#{@script}>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuco-0.1.1 | lib/cuco.rb |
cuco-0.1.0 | lib/cuco.rb |