lib/ctioga2/commands/doc/markup.rb in ctioga2-0.9 vs lib/ctioga2/commands/doc/markup.rb in ctioga2-0.10
- old
+ new
@@ -104,14 +104,18 @@
# A link to a type/group/command
class MarkupLink < MarkupItem
# The object target of the link
attr_accessor :target
+
+ # For error reporting
+ attr_reader :dbg
# _target_ is the name of the target, which can be of _type_
# 'group', 'command', 'backend', 'type', 'function' and 'url'
def initialize(doc, target, type)
super(doc)
+ @dbg = [target, type]
if type =~ /url/
@target = target
else
@target = doc.send("#{type}s")[target]
end