class Nx::ErbalT
Public Class Methods
render_from_hash(template, hash)
click to toggle source
# File lib/nx/yaml.rb, line 13 def self.render_from_hash(template, hash) ErbalT.new(hash).render(template) end
Public Instance Methods
render(template)
click to toggle source
# File lib/nx/yaml.rb, line 9 def render(template) ERB.new(template).result(binding) end