class Trenni::FileBuffer
def initialize(path)
def initialize(path) @path = path end
def read
def read @cache ||= File.read(@path) end
def to_buffer
def to_buffer Buffer.new(self.read, @path) end
def initialize(path) @path = path end
def read @cache ||= File.read(@path) end
def to_buffer Buffer.new(self.read, @path) end