class TinyMCE::Rails::AssetManifest

Attributes

file[R]

Public Class Methods

load(manifest_path) click to toggle source
# File lib/tinymce/rails/asset_manifest.rb, line 6
def self.load(manifest_path)
  JsonManifest.try(manifest_path, ".sprockets-manifest*.json") ||
    JsonManifest.try(manifest_path, "manifest*.json") ||
    YamlManifest.try(manifest_path) ||
    NullManifest.new
end

Public Instance Methods

asset_path(logical_path) { |digested, logical_path| ... } click to toggle source
# File lib/tinymce/rails/asset_manifest.rb, line 21
def asset_path(logical_path)
  if digested = assets[logical_path]
    yield digested, logical_path if block_given?
  end
end
each(pattern) { |asset| ... } click to toggle source
# File lib/tinymce/rails/asset_manifest.rb, line 13
def each(pattern)
  assets.each_key do |asset|
    if asset =~ pattern && !index_asset?(asset)
      yield asset
    end
  end
end
to_s() click to toggle source
# File lib/tinymce/rails/asset_manifest.rb, line 27
def to_s
  dump
end

Protected Instance Methods

index_asset?(asset) click to toggle source
# File lib/tinymce/rails/asset_manifest.rb, line 32
def index_asset?(asset)
  asset =~ /\/index[^\/]*\.\w+$/
end