Class: TextContainer

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

Instance Method Summary collapse

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

Returns:

  • (Boolean)


824
825
826
# File 'lib/ribit/contentparser.rb', line 824

def childs?
  return false
end

#get_textObject



828
829
830
# File 'lib/ribit/contentparser.rb', line 828

def get_text 
  return @text
end

#text?Boolean

Returns:

  • (Boolean)


819
820
821
# File 'lib/ribit/contentparser.rb', line 819

def text?
  return @modifiable
end

#to_sObject



838
839
840
# File 'lib/ribit/contentparser.rb', line 838

def to_s
  return @text
end