Class: Text (REXML)

Overview
Module Structure
Class Hierarchy
Constants
Text::SPECIALS
Text::SUBSTITUTES
Text::SLAICEPS
Text::SETUTITSBUS
Text::ILLEGAL
Text::NUMERICENTITY
Text::REFERENCE
Text::EREFERENCE
Class Methods
Text.read_with_substitution / 2
Text.normalize / 3
Text.unnormalize / 4
Instance Attributes
Text#raw [RW]
Instance Methods
Text#initialize / 6
Text#node_type
Text#empty?
Text#clone
Text#<< / 1
Text#<=> / 1
Text#to_s
Text#inspect
Text#value
Text#value= / 1
Text#wrap / 3
Text#indent_text / 4
Text#write / 4
Text#xpath
Text#write_with_substitution
is a submodule of
module: REXML   
includes
  Comparable ( Builtin-Module )
inherits from
  Child ( REXML )
is inherited by
  CData ( REXML )
has properties
constant: SPECIALS   
constant: SUBSTITUTES   
constant: SLAICEPS   
constant: SETUTITSBUS   
attribute: raw [RW]   
constant: ILLEGAL   
constant: NUMERICENTITY   
method: initialize / 6   
method: node_type   
method: empty?   
method: clone   
method: << / 1   
method: <=> / 1   
constant: REFERENCE   
method: to_s   
method: inspect   
method: value   
method: value= / 1   
method: wrap / 3   
method: indent_text / 4   
method: write / 4   
method: xpath   
method: write_with_substitution   
class method: read_with_substitution / 2   
constant: EREFERENCE   
class method: normalize / 3   
class method: unnormalize / 4   
is defined at
#9 in rexml/text.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
module: Comparable     
  module: REXML
class: CData     
class: Child     
class: Text     

Class Hierarchy

Object ( Builtin-Module )
has properties
method: dclone   
Child ( REXML )
includes
  Node ( REXML )
has properties
attribute: parent [R]   
method: initialize / 1   
method: replace_with / 1   
method: remove   
method: parent= / 1   
alias: next_sibling next_sibling_node   
alias: previous_sibling previous_sibling_node   
method: next_sibling= / 1   
method: previous_sibling= / 1   
method: document   
method: bytes   
Text ( REXML )
includes
  Comparable ( Builtin-Module )
has properties
constant: SPECIALS   
constant: SUBSTITUTES   
constant: SLAICEPS   
constant: SETUTITSBUS   
attribute: raw [RW]   
constant: ILLEGAL   
constant: NUMERICENTITY   
method: initialize / 6   
method: node_type   
method: empty?   
method: clone   
method: << / 1   
method: <=> / 1   
constant: REFERENCE   
method: to_s   
method: inspect   
method: value   
method: value= / 1   
method: wrap / 3   
method: indent_text / 4   
method: write / 4   
method: xpath   
method: write_with_substitution   
class method: read_with_substitution / 2   
constant: EREFERENCE   
class method: normalize / 3   
class method: unnormalize / 4   
  CData     

Constants

Text::SPECIALS

#12 in rexml/text.rb

SPECIALS = [ /&(?!#?[\w-]+;)/u, /</u, />/u, /"/u, /'/u, /\r/u ]   

Text::SUBSTITUTES

#13 in rexml/text.rb

SUBSTITUTES = ['&amp;', '&lt;', '&gt;', '&quot;', '&apos;', '&#13;']   

Text::SLAICEPS

#15 in rexml/text.rb

SLAICEPS = [ '<', '>', '"', "'", '&' ]   

Text::SETUTITSBUS

#16 in rexml/text.rb

SETUTITSBUS = [ /&lt;/u, /&gt;/u, /&quot;/u, /&apos;/u, /&amp;/u ]   

Text::ILLEGAL

#21 in rexml/text.rb

ILLEGAL = /(<|&(?!(#{Entity::NAME})|(#0*((?:\d+)|(?:x[a-fA-F0-9]+)));))/um   

Text::NUMERICENTITY

#22 in rexml/text.rb

NUMERICENTITY = /&#0*((?:\d+)|(?:x[a-fA-F0-9]+));/   

Text::REFERENCE

#123 in rexml/text.rb

REFERENCE = /#{Entity::REFERENCE}/   

Text::EREFERENCE

#286 in rexml/text.rb

EREFERENCE = /&(?!#{Entity::NAME};)/   

Class Methods

Text.read_with_substitution / 2

#262 in rexml/text.rb

read_with_substitution ( input ,
  illegal=nil )

Text.normalize / 3

#288 in rexml/text.rb

normalize ( input ,
  doctype=nil ,
  entity_filter=nil )

Text.unnormalize / 4

#310 in rexml/text.rb

unnormalize ( string ,
  doctype=nil ,
  filter=nil ,
  illegal=nil )

Instance Attributes

Text#raw [RW]

#19 in rexml/text.rb

Instance Methods

Text#initialize / 6

#60 in rexml/text.rb

initialize ( arg ,
  respect_whitespace=false ,
  parent=nil ,
  raw=nil ,
  entity_filter=nil ,
  illegal=ILLEGAL )

Text#node_type

#96 in rexml/text.rb

node_type

Text#empty?

#100 in rexml/text.rb

empty?

Text#clone

#105 in rexml/text.rb

clone

Text#<< / 1

#112 in rexml/text.rb

<< ( to_append )

Text#<=> / 1

#119 in rexml/text.rb

<=> ( other )

Text#to_s

#137 in rexml/text.rb

to_s

Text#inspect

#150 in rexml/text.rb

inspect

Text#value

#167 in rexml/text.rb

value

Text#value= / 1

#184 in rexml/text.rb

value= ( val )

Text#wrap / 3

#191 in rexml/text.rb

wrap ( string ,
  width ,
  addnewline=false )

Text#indent_text / 4

#202 in rexml/text.rb

indent_text ( string ,
  level=1 ,
  style="\t" ,
  indentfirstline=true )

Text#write / 4

#217 in rexml/text.rb

write ( writer ,
  indent=-1 ,
  transitive=false ,
  ie_hack=false )

Text#xpath

#229 in rexml/text.rb

xpath

Text#write_with_substitution

#249 in rexml/text.rb

write_with_substitution