14
15
16
17
18
19
|
# File 'lib/cocoadex/models/element.rb', line 14
def print
template_name = self.class.const_get("TEMPLATE_NAME")
path = Cocoadex.view_path(template_name)
template = IO.read(path, :mode => 'rb')
ERB.new(template, nil, '<>').result(binding)
end
|