Module: OrgMode::FileOperations

Included in:
DefaultOrgfile, DefaultRcFile
Defined in:
lib/org_mode/configuration.rb

Instance Method Summary collapse

Instance Method Details

#spit_into_file(path, content) ⇒ Object



8
9
10
11
12
13
# File 'lib/org_mode/configuration.rb', line 8

def spit_into_file(path, content)
  f = ::File.open(path, 'w+')
  f.write(content)
  f.flush
  f.close
end