class FormatTagTable
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)
Attributes
browser[R]
Public Class Methods
new(browser)
click to toggle source
Calls superclass method
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 6 def initialize(browser) @browser=browser super() end
Public Instance Methods
add(arg)
click to toggle source
Calls superclass method
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 12 def add(arg) tag=FormatTag.new(self,arg) super(tag) if tag.name tag end
clear()
click to toggle source
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 33 def clear a=Array.new each{|tag| a.push(tag)} a.each{|tag| remove(tag)} end
lookup(name)
click to toggle source
Calls superclass method
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 30 def lookup(name) name.nil? ? nil : super(name) end
lookup_by_code(str)
click to toggle source
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 25 def lookup_by_code(str) found=nil each{|tag| found=tag if tag.code == Regexp.escape(str)} found end
markup_regexp()
click to toggle source
# File lib/ManqodHelp/HelpBrowser/FormatTagTable.rb, line 18 def markup_regexp r="" each{|tag| r=r+tag.code+"|" if tag.code && tag.code.length>1} r[r.length-1]="" if r.length>0 #remove the last | Regexp.compile(r) end