Class: Zanzibar::Actions::Init::TemplateRenderer

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/zanzibar/actions/init.rb

Overview

Allows us to easily feed our options hash to an ERB

Instance Method Summary collapse

Instance Method Details

#render(template) ⇒ Object



34
35
36
# File 'lib/zanzibar/actions/init.rb', line 34

def render(template)
  ERB.new(template).result(binding)
end