class RFlags::FileFlag

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/rflags/file_flag.rb, line 5
def initialize(path)
  @path = path
end

Public Instance Methods

reset() click to toggle source
# File lib/rflags/file_flag.rb, line 17
def reset
  File.delete(path) if File.file?(path)
end
set() click to toggle source
# File lib/rflags/file_flag.rb, line 13
def set
  File.write(path, '')
end
set?() click to toggle source
# File lib/rflags/file_flag.rb, line 9
def set?
  File.file?(path)
end