module Fontist::Import::TemplateHelper

Public Class Methods

bind(resource, name = nil) click to toggle source
# 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
esc(text)
escape_double_quotes(text) click to toggle source
# File lib/fontist/import/template_helper.rb, line 11
def escape_double_quotes(text)
  text.gsub('"', '\"')
end
Also aliased as: esc