Sha256: 74a89dd63e3eab56cc4fd9b984c657694469afa27508d8e87a44ceb103201dc5

Contents?: true

Size: 227 Bytes

Versions: 17

Compression:

Stored size: 227 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
remote_table-3.3.3 lib/remote_table/yaml.rb
remote_table-3.3.2 lib/remote_table/yaml.rb
remote_table-3.3.0 lib/remote_table/yaml.rb
remote_table-3.2.1 lib/remote_table/yaml.rb
remote_table-3.2.0 lib/remote_table/yaml.rb
remote_table-3.1.0 lib/remote_table/yaml.rb
remote_table-3.0.0 lib/remote_table/yaml.rb
remote_table-2.1.2 lib/remote_table/yaml.rb
remote_table-3.0.0.rc2 lib/remote_table/yaml.rb
remote_table-3.0.0.rc1 lib/remote_table/yaml.rb
remote_table-3.0.0.beta lib/remote_table/yaml.rb
remote_table-3.0.0.alpha lib/remote_table/yaml.rb
remote_table-2.1.1 lib/remote_table/yaml.rb
remote_table-2.1.0 lib/remote_table/yaml.rb
remote_table-2.0.2 lib/remote_table/yaml.rb
remote_table-2.0.1 lib/remote_table/yaml.rb
remote_table-2.0.0 lib/remote_table/yaml.rb