class CTioga2::Commands::Documentation::MarkedUpText::MarkupLink
A link to a type/group/command
Attributes
dbg[R]
For error reporting
target[RW]
The object target of the link
Public Class Methods
new(doc, target, type)
click to toggle source
target is the name of the target, which can be of type 'group', 'command', 'backend', 'type', 'function' and 'url'
Calls superclass method
CTioga2::Commands::Documentation::MarkedUpText::MarkupItem::new
# File lib/ctioga2/commands/doc/markup.rb, line 115 def initialize(doc, target, type) super(doc) @dbg = [target, type] if type =~ /url/ @target = target else @target = doc.send("#{type}s")[target] end end
Public Instance Methods
dump_string()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 137 def dump_string return "link: #{@target}" end
to_s()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 125 def to_s if @target begin return @target.name rescue NoMethodError return @target end else return "unknown" end end