class JsDuck::Tag::Extends
Public Class Methods
new()
click to toggle source
# File lib/jsduck/tag/extends.rb, line 6 def initialize @pattern = ["extend", "extends"] @tagname = :extends @ext_define_pattern = "extend" @ext_define_default = {:extends => "Ext.Base"} end
Public Instance Methods
parse_doc(p, pos)
click to toggle source
@extends classname or @extends {classname}
# File lib/jsduck/tag/extends.rb, line 16 def parse_doc(p, pos) if p.match(/\{/) cls = p.ident_chain p.match(/\}/) else cls = p.ident_chain end { :tagname => :extends, :extends => cls, } end
parse_ext_define(cls, ast)
click to toggle source
# File lib/jsduck/tag/extends.rb, line 34 def parse_ext_define(cls, ast) cls[:extends] = JsDuck::Js::Utils.make_string(ast) end
process_doc(h, tags, pos)
click to toggle source
# File lib/jsduck/tag/extends.rb, line 30 def process_doc(h, tags, pos) h[:extends] = tags[0][:extends] end