Sha256: 9cc14da2f1a0c40a697cdbf28198556ef19274c3ec3c80016ed1abf18f3cc46b
Contents?: true
Size: 639 Bytes
Versions: 12
Compression:
Stored size: 639 Bytes
Contents
require 'jsduck/tag_registry' require 'jsduck/util/md5' require 'jsduck/web/member_icons' module JsDuck module Web # Writes the CSS gathered from Tag classes and --css option into given file. # Then Renames the file so it contains an MD5 hash inside it, # returning the resulting fingerprinted name. class Css def initialize(opts) @opts = opts end def write(filename) File.open(filename, 'w') {|f| f.write(all_css) } Util::MD5.rename(filename) end private def all_css TagRegistry.css + Web::MemberIcons.css + @opts.css end end end end
Version data entries
12 entries across 12 versions & 1 rubygems