Sha256: 5b7004f1152cbb5b615eddf18ea1a12c923a35bff1d78946ee7f82e30d260386

Contents?: true

Size: 736 Bytes

Versions: 20

Compression:

Stored size: 736 Bytes

Contents

require "jsduck/tag/member_tag"
require "jsduck/params_merger"

module JsDuck::Tag
  class Event < MemberTag
    def initialize
      @pattern = "event"
      @tagname = :event
      @member_type = {
        :title => "Events",
        :position => MEMBER_POS_EVENT,
        :icon => File.dirname(__FILE__) + "/icons/event.png"
      }
    end

    # @event name ...
    def parse_doc(p, pos)
      {
        :tagname => :event,
        :name => p.ident,
      }
    end

    def process_doc(h, tags, pos)
      h[:name] = tags[0][:name]
    end

    def merge(h, docs, code)
      JsDuck::ParamsMerger.merge(h, docs, code)
    end

    def to_html(event, cls)
      member_link(event) + member_params(event[:params])
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
solvas-jsduck-6.0.0.30539 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.9571 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.6154 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.4021 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.2554 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.1891 lib/jsduck/tag/event.rb
solvas-jsduck-6.0.0.beta.1888 lib/jsduck/tag/event.rb
jsduck-6.0.0beta lib/jsduck/tag/event.rb
jsduck-5.3.4 lib/jsduck/tag/event.rb
jsduck-5.3.3 lib/jsduck/tag/event.rb
jsduck-5.3.2 lib/jsduck/tag/event.rb
jsduck-5.3.1 lib/jsduck/tag/event.rb
jsduck-5.3.0 lib/jsduck/tag/event.rb
jsduck-5.2.0 lib/jsduck/tag/event.rb
jsduck-5.1.0 lib/jsduck/tag/event.rb
jsduck-5.0.1 lib/jsduck/tag/event.rb
jsduck-5.0.0 lib/jsduck/tag/event.rb
jsduck-5.0.0.beta5 lib/jsduck/tag/event.rb
jsduck-5.0.0.beta4 lib/jsduck/tag/event.rb
jsduck-5.0.0.beta3 lib/jsduck/tag/event.rb