Class: OrgMode::DefaultRcFile

Inherits:
Object
  • Object
show all
Extended by:
FileOperations
Defined in:
lib/org_mode/configuration.rb

Class Method Summary collapse

Methods included from FileOperations

spit_into_file

Class Method Details

.contentObject

[View source]

39
40
41
# File 'lib/org_mode/configuration.rb', line 39

def content
  @content ||= ::File.open(default_rc_path).read
end

.write_to(target_path) ⇒ Object

[View source]

43
44
45
# File 'lib/org_mode/configuration.rb', line 43

def write_to(target_path)
  spit_into_file(target_path, content)
end