Sha256: 7d94f1790639cc8850522307702233b7c03ad0e806e9700fed400ba290b375a6

Contents?: true

Size: 564 Bytes

Versions: 12

Compression:

Stored size: 564 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 to_html(mixin, cls)
      member_link(mixin) + member_params(mixin[:params])
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jsduck-5.3.4 lib/jsduck/tag/css_mixin.rb
jsduck-5.3.3 lib/jsduck/tag/css_mixin.rb
jsduck-5.3.2 lib/jsduck/tag/css_mixin.rb
jsduck-5.3.1 lib/jsduck/tag/css_mixin.rb
jsduck-5.3.0 lib/jsduck/tag/css_mixin.rb
jsduck-5.2.0 lib/jsduck/tag/css_mixin.rb
jsduck-5.1.0 lib/jsduck/tag/css_mixin.rb
jsduck-5.0.1 lib/jsduck/tag/css_mixin.rb
jsduck-5.0.0 lib/jsduck/tag/css_mixin.rb
jsduck-5.0.0.beta5 lib/jsduck/tag/css_mixin.rb
jsduck-5.0.0.beta4 lib/jsduck/tag/css_mixin.rb
jsduck-5.0.0.beta3 lib/jsduck/tag/css_mixin.rb