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.21.2 lib/fontist/import/template_helper.rb
fontist-1.21.1 lib/fontist/import/template_helper.rb
fontist-1.20.0 lib/fontist/import/template_helper.rb
fontist-1.19.0 lib/fontist/import/template_helper.rb
fontist-1.18.2 lib/fontist/import/template_helper.rb
fontist-1.17.1 lib/fontist/import/template_helper.rb
fontist-1.17.0 lib/fontist/import/template_helper.rb
fontist-1.16.0 lib/fontist/import/template_helper.rb
fontist-1.15.2 lib/fontist/import/template_helper.rb
fontist-1.15.1 lib/fontist/import/template_helper.rb
fontist-1.15.0 lib/fontist/import/template_helper.rb
fontist-1.14.6 lib/fontist/import/template_helper.rb
fontist-1.14.5 lib/fontist/import/template_helper.rb
fontist-1.14.4 lib/fontist/import/template_helper.rb
fontist-1.14.3 lib/fontist/import/template_helper.rb
fontist-1.14.2 lib/fontist/import/template_helper.rb
fontist-1.14.1 lib/fontist/import/template_helper.rb
fontist-1.14.0 lib/fontist/import/template_helper.rb
fontist-1.13.2 lib/fontist/import/template_helper.rb
fontist-1.13.1 lib/fontist/import/template_helper.rb