Sha256: 3a78b288f117baa3454dc9b7b7258baafb00c89e44b6e93d2f6514a8288b0686

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

require 'yaml'

class RemoteTable
  class Format
    class Yaml < Format
      def each(&blk)
        data = YAML.load_file t.local_file.path
        data.each &blk
      ensure
        t.local_file.cleanup
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remote_table-1.4.0 lib/remote_table/format/yaml.rb