Class: RTF::LinkNode
- Inherits:
-
CommandNode
- Object
- Node
- ContainerNode
- CommandNode
- RTF::LinkNode
- Defined in:
- lib/rtf/node.rb
Instance Attribute Summary
Attributes inherited from CommandNode
#prefix, #split, #suffix, #wrap
Attributes inherited from ContainerNode
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(parent, url) ⇒ LinkNode
constructor
A new instance of LinkNode.
Methods inherited from CommandNode
#<<, #apply, #background, #bold, #colour, #font, #footnote, #foreground, #image, #italic, #line_break, #link, #list, #paragraph, #strike, #subscript, #superscript, #table, #to_rtf, #underline
Methods inherited from ContainerNode
#[], #each, #first, #last, #size, #store, #to_rtf
Methods inherited from Node
#is_root?, #next_node, #previous_node, #root
Constructor Details
#initialize(parent, url) ⇒ LinkNode
Returns a new instance of LinkNode.
697 698 699 700 701 702 |
# File 'lib/rtf/node.rb', line 697 def initialize(parent, url) prefix = "\\field{\\*\\fldinst HYPERLINK \"#{url}\"}{\\fldrslt " suffix = "}" super(parent, prefix, suffix, false) end |