Class: Coco::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/coco/formatter/template.rb

Overview

From me, you can obtain ERB templates.

Class Method Summary collapse

Class Method Details

.open(filename) ⇒ Object

filename - An String ERB template.

Returns ERB.



12
13
14
15
# File 'lib/coco/formatter/template.rb', line 12

def self.open(filename)
  io = IO.readlines(filename, nil)
      ERB.new(io[0], nil, '><')
end