Class: News::Template::Context

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/pluto/news.rb

Instance Method Summary collapse

Instance Method Details

#get_bindingObject

use a different name - why? why not?

e.g. to_h, to_hash, vars, locals, assigns, etc.


217
# File 'lib/pluto/news.rb', line 217

def get_binding() binding; end

#h(text) ⇒ Object

add builtin helpers / shortcuts



220
# File 'lib/pluto/news.rb', line 220

def h( text ) CGI.escapeHTML( text ); end