Class: ReferenceLinkContainer
- Defined in:
- lib/ribit/contentparser.rb
Instance Method Summary collapse
-
#initialize(url, contentDoc) ⇒ ReferenceLinkContainer
constructor
A new instance of ReferenceLinkContainer.
- #to_s ⇒ Object
Methods inherited from Container
#<<, #add_child, #childs?, #get_childs, #get_parent, #replace, #set_childs, #text?
Methods included from Assert
assert, #assert, assert_nil, #assert_nil, #assert_not_nil, assert_not_nil, raise_exception
Constructor Details
#initialize(url, contentDoc) ⇒ ReferenceLinkContainer
Returns a new instance of ReferenceLinkContainer.
1064 1065 1066 1067 1068 |
# File 'lib/ribit/contentparser.rb', line 1064 def initialize( url, contentDoc ) super( nil ) @url = url @counter = contentDoc.get_next_ref_counter end |
Instance Method Details
#to_s ⇒ Object
1071 1072 1073 1074 |
# File 'lib/ribit/contentparser.rb', line 1071 def to_s description = @counter.to_s return '[' + LinkTag.new( @url, description, false ).to_s + ']' end |