Sha256: dd6c7c230feba061c293ee79b1647fd21a8b6d8b965454000f2f73594c9b36b1
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
module Gherkin module Stream class SourceEvents def initialize(paths) @paths = paths end def enum Enumerator.new do |y| @paths.each do |path| event = { 'type' => 'source', 'uri' => path, 'data' => File.open(path, 'r:UTF-8', &:read), 'media' => { 'encoding' => 'utf-8', 'type' => 'text/vnd.cucumber.gherkin+plain' } } y.yield(event) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems