Class: DirectLinkContainer

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(href) ⇒ DirectLinkContainer

Returns a new instance of DirectLinkContainer.



964
965
966
967
# File 'lib/ribit/contentparser.rb', line 964

def initialize( href )
  super( nil )
  @href =href
end

Instance Method Details

#to_sObject



970
971
972
# File 'lib/ribit/contentparser.rb', line 970

def to_s
  return "<a href='#{@href}'>#{@href}</a>"
end