# File lib/tinymce/rails/asset_manifest.rb, line 70 def append(logical_path, file) stat = File.stat(file) @manifest["assets"][logical_path] = logical_path @manifest["files"][logical_path] = { "logical_path" => logical_path, "mtime" => stat.mtime.iso8601, "size" => stat.size, "digest" => nil } end
# File lib/tinymce/rails/asset_manifest.rb, line 106 def dump MultiJson.dump(@manifest) end
# File lib/tinymce/rails/asset_manifest.rb, line 96 def each(pattern) @manifest["assets"].each_key do |asset| yield asset if asset =~ pattern end end
# File lib/tinymce/rails/asset_manifest.rb, line 82 def remove(logical_path) if digested = @manifest["assets"].delete(logical_path) @manifest["files"].delete(digested) end end
# File lib/tinymce/rails/asset_manifest.rb, line 88 def remove_digest(logical_path) if digested = @manifest["assets"][logical_path] @manifest["assets"][logical_path] = logical_path @manifest["files"][logical_path] = @manifest["files"].delete(digested).tap { |f| f["digest"] = nil } yield digested, logical_path if block_given? end end
Generated with the Darkfish Rdoc Generator 2.