module SpecCat
Public Class Methods
accept?()
click to toggle source
# File lib/spec_cat.rb, line 10 def self.accept? !ENV[ 'SPEC_CAT_ACCEPT' ].nil? end
read( path )
click to toggle source
# File lib/spec_cat.rb, line 18 def self.read( path ) File.open( path, 'rb', &:read ) end
write( path, content )
click to toggle source
# File lib/spec_cat.rb, line 14 def self.write( path, content ) File.open( path, 'wb' ) { |io| io.write content } end