Sha256: 75f18835d2fcec481e03213e2bec1b0a70a37f41da07dfeaabbc36190f357490

Contents?: true

Size: 368 Bytes

Versions: 55

Compression:

Stored size: 368 Bytes

Contents

module Fontist
  module Import
    module TemplateHelper
      class << self
        def bind(resource, name = nil)
          b = binding
          b.local_variable_set(name, resource) if name
          b
        end

        def escape_double_quotes(text)
          text.gsub('"', '\"')
        end

        alias esc escape_double_quotes
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
fontist-1.8.7 lib/fontist/import/template_helper.rb
fontist-1.8.6 lib/fontist/import/template_helper.rb
fontist-1.8.5 lib/fontist/import/template_helper.rb
fontist-1.8.4 lib/fontist/import/template_helper.rb
fontist-1.8.3 lib/fontist/import/template_helper.rb
fontist-1.8.2 lib/fontist/import/template_helper.rb
fontist-1.8.1 lib/fontist/import/template_helper.rb
fontist-1.7.3 lib/fontist/import/template_helper.rb
fontist-1.7.2 lib/fontist/import/template_helper.rb
fontist-1.7.1 lib/fontist/import/template_helper.rb
fontist-1.7.0 lib/fontist/import/template_helper.rb
fontist-1.6.0 lib/fontist/import/template_helper.rb
fontist-1.5.1 lib/fontist/import/template_helper.rb
fontist-1.5.0 lib/fontist/import/template_helper.rb
fontist-1.4.0 lib/fontist/import/template_helper.rb