Class: Assert::View::Renderer::Template

Inherits:
Undies::Template
  • Object
show all
Defined in:
lib/assert/view/base.rb

Overview

define rendering template class to use for rendering need to overwrite the ‘_’ and ‘__’ meths to add trailing newlines b/c streaming output doesn’t add any whitespace

Instance Method Summary collapse

Instance Method Details

#_(data = "", nl = true) ⇒ Object



20
# File 'lib/assert/view/base.rb', line 20

def _(data="", nl=true);  super(data.to_s + (nl ? "\n" : "")); end

#__(data = "", nl = true) ⇒ Object



21
# File 'lib/assert/view/base.rb', line 21

def __(data="", nl=true); super(data.to_s + (nl ? "\n" : "")); end