Class: Tdc::YamlReaders::YamlReader
- Inherits:
-
YamlReaderBase
- Object
- YamlReaderBase
- Tdc::YamlReaders::YamlReader
- Defined in:
- lib/tdc/yaml_readers/yaml_reader.rb
Overview
YAML source is a YAML file.
Instance Method Summary collapse
Methods inherited from YamlReaderBase
#applies?, #data_definitions, #definitions_source, #initialize
Constructor Details
This class inherits a constructor from Tdc::YamlReaders::YamlReaderBase
Instance Method Details
#file_extension ⇒ Object
7 8 9 |
# File 'lib/tdc/yaml_readers/yaml_reader.rb', line 7 def file_extension ".yml" end |
#source_string ⇒ Object
11 12 13 |
# File 'lib/tdc/yaml_readers/yaml_reader.rb', line 11 def source_string File.read(definitions_file) end |