Class: EksCli::ERBResolver

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/eks_cli/utils/erb_resolver.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.render(t, h) ⇒ Object



6
7
8
# File 'lib/eks_cli/utils/erb_resolver.rb', line 6

def self.render(t, h)
  ERBResolver.new(h).render(t)
end

Instance Method Details

#render(template) ⇒ Object



10
11
12
# File 'lib/eks_cli/utils/erb_resolver.rb', line 10

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