Class: News::Template::Context
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- News::Template::Context
- Defined in:
- lib/pluto/news.rb
Instance Method Summary collapse
-
#get_binding ⇒ Object
use a different name - why? why not? e.g.
-
#h(text) ⇒ Object
add builtin helpers / shortcuts.
Instance Method Details
#get_binding ⇒ Object
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 |