class HubClustersCreator::Utils::Template::Render
Render
is a class for templating
Attributes
context[RW]
Public Class Methods
new(context)
click to toggle source
# File lib/hub-clusters-creator/template.rb, line 29 def initialize(context) @context = context end
Public Instance Methods
get_binding()
click to toggle source
rubocop:disable Naming/AccessorMethodName
# File lib/hub-clusters-creator/template.rb, line 38 def get_binding binding end
render(template)
click to toggle source
# File lib/hub-clusters-creator/template.rb, line 33 def render(template) ERB.new(template, nil, '-').result(get_binding) end