| Class | Texy::LinkRefElement |
| In: |
lib/texy/modules/link.rb
|
| Parent: | TextualElement |
| ref_name | [RW] |
# File lib/texy/modules/link.rb, line 293 def initialize(texy) super self.content_type = CONTENT_TEXTUAL end
# File lib/texy/modules/link.rb, line 298 def set_link(ref_raw) self.ref_name = ref_raw[1..-2] low_name = ref_name.downcase # watch out for utf8! # prevent cycling return false if @@callstack[low_name] return false unless el_ref = texy.link_module.reference(ref_name) el_link = LinkElement.new(texy) el_link.set_link_raw(ref_raw) if el_ref.label @@callstack[low_name] = true parse(el_ref.label) @@callstack.delete(low_name) else set_content(el_link.link.as_textual, true) end set_content(append_child(el_link, content), true) end