Class: TextContainer
- Inherits:
-
Object
- Object
- TextContainer
- Defined in:
- lib/ribit/contentparser.rb
Instance Method Summary collapse
- #<<(data) ⇒ Object
- #childs? ⇒ Boolean
- #get_text ⇒ Object
-
#initialize(data = '', modifiable = true) ⇒ TextContainer
constructor
A new instance of TextContainer.
- #text? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(data = '', modifiable = true) ⇒ TextContainer
Returns a new instance of TextContainer.
813 814 815 816 |
# File 'lib/ribit/contentparser.rb', line 813 def initialize( data='', modifiable=true ) @text = data @modifiable = modifiable end |
Instance Method Details
#<<(data) ⇒ Object
833 834 835 |
# File 'lib/ribit/contentparser.rb', line 833 def << ( data ) @text << data end |
#childs? ⇒ Boolean
824 825 826 |
# File 'lib/ribit/contentparser.rb', line 824 def childs? return false end |
#get_text ⇒ Object
828 829 830 |
# File 'lib/ribit/contentparser.rb', line 828 def get_text return @text end |
#text? ⇒ Boolean
819 820 821 |
# File 'lib/ribit/contentparser.rb', line 819 def text? return @modifiable end |
#to_s ⇒ Object
838 839 840 |
# File 'lib/ribit/contentparser.rb', line 838 def to_s return @text end |