Module: Hud::Display::Helpers

Included in:
Screen
Defined in:
lib/hud.rb

Instance Method Summary collapse

Instance Method Details

#display(name, from: nil, locals: {}) ⇒ Object Also known as: render, d, r



87
88
89
90
# File 'lib/hud.rb', line 87

def display(name, from: nil, locals: {})
  klz = Display.build(name)
  klz.call(locals: locals).render_template(name: name, locals: @locals, from: from)
end