class Fi::File
Public Class Methods
new(path, content='')
click to toggle source
# File lib/fi/file.rb, line 3 def initialize(path, content='') @path = path ::File.open(@path, 'w+') do |f| f.write content end end
Public Instance Methods
content()
click to toggle source
# File lib/fi/file.rb, line 10 def content Fi.read @path end