Module: Runfile::Renderable

Includes:
Colsole
Included in:
Entrypoint, Initiator, Userfile
Defined in:
lib/runfile/concerns/renderable.rb

Instance Method Summary collapse

Instance Method Details

#render(view, context: nil) ⇒ Object



5
6
7
8
# File 'lib/runfile/concerns/renderable.rb', line 5

def render(view, context: nil)
  path = "#{base_view_path}/#{view}.gtx"
  GTX.render_file path, context: context, filename: path
end