Sha256: 4b8a3520f348b96236e91a95d2adfc296a4951f7eca684401d980913115ca0dc
Contents?: true
Size: 921 Bytes
Versions: 16
Compression:
Stored size: 921 Bytes
Contents
require "jsduck/tag/boolean_tag" module JsDuck::Tag class New < BooleanTag def initialize @pattern = "new" # A :tooltip field gets injected to this signature in Process::Versions @signature = {:long => "★", :short => "★"} # black (docs text color) unicode star on yellow background @css = <<-EOCSS .signature .new { color: #484848; background-color: #F5D833; } EOCSS super end # Initializes the tooltip text based on the --new-since and # --import options passed from command line. # # NOTE: This method is explicitly called from JsDuck::Options class. def init_tooltip!(opts) if opts.new_since @signature[:tooltip] = "New since #{opts.new_since}" elsif opts.import.length > 0 @signature[:tooltip] = "New since #{opts.import.last[:version]}" end end end end
Version data entries
16 entries across 16 versions & 3 rubygems