Class: ReferenceLinkContainer

Inherits:
Container show all
Defined in:
lib/ribit/contentparser.rb

Instance Method Summary collapse

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_sObject



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