class News::Template::Context
Public Instance Methods
get_binding()
click to toggle source
use a different name - why? why not?
e.g. to_h, to_hash, vars, locals, assigns, etc.
# File lib/newscast.rb, line 293 def get_binding() binding; end
h( text )
click to toggle source
add builtin helpers / shortcuts
# File lib/newscast.rb, line 296 def h( text ) CGI.escapeHTML( text ); end