Class: Fedora2To3PidRenamer::Manipulator::Xml

Inherits:
Base
  • Object
show all
Defined in:
lib/fedora_2_to_3_pid_renamer/manipulator/xml.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #source

Instance Method Summary collapse

Methods inherited from Base

#initialize, output_for

Constructor Details

This class inherits a constructor from Fedora2To3PidRenamer::Manipulator::Base

Instance Method Details

#outputObject



17
18
19
# File 'lib/fedora_2_to_3_pid_renamer/manipulator/xml.rb', line 17

def output
  xml.to_s
end

#runObject



9
10
11
# File 'lib/fedora_2_to_3_pid_renamer/manipulator/xml.rb', line 9

def run
  modify_text_at_each_location_in_config
end

#xmlObject



13
14
15
# File 'lib/fedora_2_to_3_pid_renamer/manipulator/xml.rb', line 13

def xml
  @xml ||= Nokogiri::XML(raw_xml)
end