Sha256: 32914db4f446129a49b250957cfa2e419ba5c6cba1b0619bd2326781503c7c6e
Contents?: true
Size: 749 Bytes
Versions: 16
Compression:
Stored size: 749 Bytes
Contents
require "jsduck/tag/member_tag" module JsDuck::Tag # As of now there is no @css_mixin tag available in CSS files. This # class just exists to define that we have a member type called # :css_mixin. class CssMixin < MemberTag def initialize @tagname = :css_mixin @member_type = { :title => "CSS Mixins", :position => MEMBER_POS_CSS_MIXIN, :icon => File.dirname(__FILE__) + "/icons/css_mixin.png" } end def process_code(code) h = super(code) h[:params] = code[:params] h end def merge(h, docs, code) JsDuck::ParamsMerger.merge(h, docs, code) end def to_html(mixin, cls) member_link(mixin) + member_params(mixin[:params]) end end end
Version data entries
16 entries across 16 versions & 3 rubygems