Class: MustacheForm::FormedMustache
- Inherits:
-
Mustache
- Object
- Mustache
- MustacheForm::FormedMustache
- Defined in:
- lib/mustache_form/form_helper.rb
Instance Method Summary collapse
- #escapeHTML(str) ⇒ Object
-
#initialize(data) ⇒ FormedMustache
constructor
A new instance of FormedMustache.
Constructor Details
#initialize(data) ⇒ FormedMustache
Returns a new instance of FormedMustache.
56 57 58 59 60 |
# File 'lib/mustache_form/form_helper.rb', line 56 def initialize(data) data.each_pair do |key, value| FormedMustache.send(:define_method, key, proc{value}) end end |
Instance Method Details
#escapeHTML(str) ⇒ Object
62 63 64 |
# File 'lib/mustache_form/form_helper.rb', line 62 def escapeHTML(str) str end |