Method: WLang::Html::HighOrderFunctions#sharp

Defined in:
lib/wlang/html.rb

#sharp(buf, who_fn, then_fn) ⇒ Object



79
80
81
82
83
84
# File 'lib/wlang/html.rb', line 79

def sharp(buf, who_fn, then_fn)
  val = evaluate(who_fn, nil)
  if val and not(val.respond_to?(:empty?) and val.empty?)
    render(then_fn, val, buf)
  end
end