Class: Approvals::Dotfile

Inherits:
Object
  • Object
show all
Defined in:
lib/approvals/dotfile.rb

Class Method Summary collapse

Class Method Details

.append(text) ⇒ Object



10
11
12
13
14
# File 'lib/approvals/dotfile.rb', line 10

def append(text)
  unless includes?(text)
    write text
  end
end

.resetObject



6
7
8
# File 'lib/approvals/dotfile.rb', line 6

def reset
  File.truncate(path, 0) if File.exist?(path)
end