Class: JsDuck::Tag::Ptype

Inherits:
Xtype show all
Defined in:
lib/jsduck/tag/ptype.rb

Constant Summary

Constants inherited from Tag

Tag::POS_ASIDE, Tag::POS_DEFAULT, Tag::POS_DEPRECATED, Tag::POS_DOC, Tag::POS_ENUM, Tag::POS_FIRES, Tag::POS_LOCALDOC, Tag::POS_OVERRIDES, Tag::POS_PARAM, Tag::POS_PREVENTABLE, Tag::POS_PRIVATE, Tag::POS_RETURN, Tag::POS_SINCE, Tag::POS_SUBPROPERTIES, Tag::POS_TEMPLATE, Tag::POS_THROWS, Tag::PRIORITY_CLASS, Tag::PRIORITY_COMPONENT, Tag::PRIORITY_SINGLETON

Instance Attribute Summary

Attributes inherited from Tag

#class_icon, #css, #ext_define_default, #ext_define_pattern, #html_position, #pattern, #repeatable, #signature, #tagname

Instance Method Summary collapse

Methods inherited from Xtype

#parse_alias_shorthand, #parse_ext_define

Methods inherited from Tag

descendants, #format, #parse_ext_define, #process_doc, #to_html

Constructor Details

#initializePtype

Returns a new instance of Ptype.



5
6
7
8
# File 'lib/jsduck/tag/ptype.rb', line 5

def initialize
  @pattern = "ptype"
  @repeatable = true
end

Instance Method Details

#parse_doc(p, pos) ⇒ Object



11
12
13
14
15
16
# File 'lib/jsduck/tag/ptype.rb', line 11

def parse_doc(p, pos)
  {
    :tagname => :aliases,
    :name => parse_alias_shorthand(p, "plugin")
  }
end