Class: REXML::ExternalEntity

Inherits:
Child show all
Defined in:
lib/extensions/rexml/rexml/doctype.rb

Instance Attribute Summary

Attributes inherited from Child

#parent

Instance Method Summary collapse

Methods inherited from Child

#bytes, #document, #next_sibling=, #previous_sibling=, #remove, #replace_with

Methods included from Node

#each_recursive, #find_first_recursive, #indent, #index_in_parent, #next_sibling_node, #parent?, #previous_sibling_node

Constructor Details

#initialize(src) ⇒ ExternalEntity

Returns a new instance of ExternalEntity.



229
230
231
232
# File 'lib/extensions/rexml/rexml/doctype.rb', line 229

def initialize( src )
  super()
  @entity = src
end

Instance Method Details

#to_sObject



233
234
235
# File 'lib/extensions/rexml/rexml/doctype.rb', line 233

def to_s
  @entity
end

#write(output, indent) ⇒ Object



236
237
238
# File 'lib/extensions/rexml/rexml/doctype.rb', line 236

def write( output, indent )
  output << @entity
end