Class: Mustache::Generator
- Inherits:
-
Object
- Object
- Mustache::Generator
- Defined in:
- lib/www_app.rb
Overview
class Context
Instance Method Summary collapse
Instance Method Details
#on_fetch(names) ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/www_app.rb', line 66 def on_fetch(names) if names.length == 2 "ctx[#{names.first.to_sym.inspect}, #{names.last.to_sym.inspect}]" else w_syms_on_fetch(names) end end |
#w_syms_on_fetch ⇒ Object
64 |
# File 'lib/www_app.rb', line 64 alias_method :w_syms_on_fetch, :on_fetch |