Class: SectionContainer
- Defined in:
- lib/ribit/contentparser.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ SectionContainer
constructor
A new instance of SectionContainer.
- #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(text) ⇒ SectionContainer
Returns a new instance of SectionContainer.
884 885 886 887 |
# File 'lib/ribit/contentparser.rb', line 884 def initialize( text ) super( nil ) add_child( TextContainer.new( text ) ) end |
Instance Method Details
#to_s ⇒ Object
890 891 892 893 894 |
# File 'lib/ribit/contentparser.rb', line 890 def to_s text = super return '<div class=\'section\'>' + text + '</div>' end |