Class: Abroad::Extractors::Yaml::DottedKeyExtractor

Inherits:
YamlExtractor show all
Defined in:
lib/abroad/extractors/yaml/dotted_key_extractor.rb

Direct Known Subclasses

RailsExtractor

Instance Attribute Summary

Attributes inherited from Extractor

#stream

Instance Method Summary collapse

Methods inherited from Extractor

#close, from_stream, from_string, #initialize, open

Constructor Details

This class inherits a constructor from Abroad::Extractors::Extractor

Instance Method Details

#extract_each(options = {}, &block) ⇒ Object



6
7
8
9
# File 'lib/abroad/extractors/yaml/dotted_key_extractor.rb', line 6

def extract_each(options = {}, &block)
  return to_enum(__method__, options) unless block_given?
  walk(parse, [], options, &block)
end