Sha256: 24a7e4f4c35c6d13b37fc983858340f37a543eac066f19e8642c0e0f176a69f8
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 Bytes
Contents
# detects processing preferences.txt, extracts sketchbook_path class ProcessingIde attr_reader :preferences def initialize @preferences = File.join(ENV['HOME'], '.processing', 'preferences.txt') end def installed? File.exist?(preferences) end def sketchbook_path File.open(preferences, 'r') do |file| file.each_line do |line| return line.tap { |sli| sli.slice!('sketchbook.path.three=') }.chomp if line =~ /sketchbook/ end end end end
Version data entries
5 entries across 5 versions & 1 rubygems