Module: RemoteTable::Yaml

Defined in:
lib/remote_table/yaml.rb

Instance Method Summary collapse

Instance Method Details

#_eachObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/remote_table/yaml.rb', line 3

def _each
  require 'yaml'
  
  data = ::YAML.load_file local_copy.path
  data.each do |row|
    yield row
  end
ensure
  local_copy.cleanup
end