Class: Perseus::FileIndexXML
- Inherits:
-
IndexXML
- Object
- CTSElement
- IndexXML
- Perseus::FileIndexXML
- Defined in:
- lib/perseus/file_index_xml.rb
Instance Attribute Summary
Attributes inherited from IndexXML
#corpus_by_edition, #corpus_by_groupname
Attributes inherited from CTSElement
Instance Method Summary collapse
-
#initialize ⇒ FileIndexXML
constructor
A new instance of FileIndexXML.
- #to_s ⇒ Object
Methods inherited from IndexXML
#by_edition, #by_groupname, #generate_json_indeces, #generate_structure_by_edition, #generate_structure_by_group
Constructor Details
#initialize ⇒ FileIndexXML
Returns a new instance of FileIndexXML.
4 5 6 7 |
# File 'lib/perseus/file_index_xml.rb', line 4 def initialize puts "Reading from locally saved xml" @urn = CTS_XML_FILE end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/perseus/file_index_xml.rb', line 8 def to_s @to_s ||= File.read(@urn) end |