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.13.0 lib/fontist/import/template_helper.rb
fontist-1.12.0 lib/fontist/import/template_helper.rb
fontist-1.11.7 lib/fontist/import/template_helper.rb
fontist-1.11.6 lib/fontist/import/template_helper.rb
fontist-1.11.5 lib/fontist/import/template_helper.rb
fontist-1.11.3 lib/fontist/import/template_helper.rb
fontist-1.11.2 lib/fontist/import/template_helper.rb
fontist-1.9.3 lib/fontist/import/template_helper.rb
fontist-1.9.2 lib/fontist/import/template_helper.rb
fontist-1.11.1 lib/fontist/import/template_helper.rb
fontist-1.10.1 lib/fontist/import/template_helper.rb
fontist-1.10.0 lib/fontist/import/template_helper.rb
fontist-1.9.1 lib/fontist/import/template_helper.rb
fontist-1.9.0 lib/fontist/import/template_helper.rb
fontist-1.8.13 lib/fontist/import/template_helper.rb
fontist-1.8.12 lib/fontist/import/template_helper.rb
fontist-1.8.11 lib/fontist/import/template_helper.rb
fontist-1.8.10 lib/fontist/import/template_helper.rb
fontist-1.8.9 lib/fontist/import/template_helper.rb
fontist-1.8.8 lib/fontist/import/template_helper.rb