module RemoteTable::Yaml

Public Instance Methods

_each() { |row| ... } click to toggle source
# 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