Evaluates to the unnormalized value of this entity; that is, replacing all entities β both %ent; and &ent; entities. This differs from +value()+ in that value
only replaces %ent; entities.
Returns the value of this entity unprocessed β raw. This is the normalized value; that is, with all %ent; and &ent; entities intact
Returns the value of this entity. At the moment, only internal entities are processed. If the value contains internal references (IE, %blah;), those are replaced with their values. IE, if the doctype contains:
<!ENTITY % foo "bar"> <!ENTITY yada "nanoo %foo; nanoo>
then:
doctype.entity('yada').value #-> "nanoo bar nanoo"
Returns the string value of this text. This is the text without entities, as it might be used programmatically, or printed to the console. This ignores the βrawβ attribute setting, and any entity_filter.
# Assume that the entity "s" is defined to be "sean", and that the # entity "r" is defined to be "russell" t = Text.new( "< & sean russell", false, nil, false, ['s'] ) t.value #-> "< & sean russell" t = Text.new( "< & &s; russell", false, nil, false ) t.value #-> "< & sean russell" u = Text.new( "sean russell", false, nil, true ) u.value #-> "sean russell"
Sets the contents of this text node. This expects the text to be unnormalized. It returns self.
e = Element.new( "a" ) e.add_text( "foo" ) # <a>foo</a> e[0].value = "bar" # <a>bar</a> e[0].value = "<a>" # <a><a></a>
Escapes all possible entities
Unescapes all possible entities
Return the tuple itself
Takes tuple
from the proxied TupleSpace
. See TupleSpace#take
.
A TupleEntry
is dead when it is canceled or expired.
Return the object which makes up the tuple itself: the Array or Hash
.
Removes tuple
The path to the data directory for this gem.
Return the authoritative instance of the command manager.
Returns self. Allows a CommandManager
instance to stand in for the class itself.