Module: Fontist::Import::TemplateHelper
- Defined in:
- lib/fontist/import/template_helper.rb
Class Method Summary collapse
Class Method Details
.bind(resource, name = nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/fontist/import/template_helper.rb', line 5 def bind(resource, name = nil) b = binding b.local_variable_set(name, resource) if name b end |
.escape_double_quotes(text) ⇒ Object Also known as: esc
11 12 13 |
# File 'lib/fontist/import/template_helper.rb', line 11 def escape_double_quotes(text) text.gsub('"', '\"') end |