Class: Approvals::Dotfile
- Inherits:
-
Object
- Object
- Approvals::Dotfile
- 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 |
.reset ⇒ Object
6 7 8 |
# File 'lib/approvals/dotfile.rb', line 6 def reset File.truncate(path, 0) if File.exist?(path) end |