Class: BitClust::TemplateRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/bitclust/screen.rb

Instance Method Summary collapse

Constructor Details

#initialize(prefix) ⇒ TemplateRepository

Returns a new instance of TemplateRepository.


173
174
175
# File 'lib/bitclust/screen.rb', line 173

def initialize(prefix)
  @prefix = prefix
end

Instance Method Details

#load(id) ⇒ Object


177
178
179
# File 'lib/bitclust/screen.rb', line 177

def load(id)
  preproc(File.read("#{@prefix}/#{id}"))
end