Sha256: 23385588247216b8e4b16253fe601ff6d9e4e50068342dd877df00409fd76c49

Contents?: true

Size: 244 Bytes

Versions: 4

Compression:

Stored size: 244 Bytes

Contents

module Dogviz
  class RenderedSequence
    def initialize(lines)
      @lines = lines
    end

    def output(type_to_file)
      text = @lines.map(&:strip).join "\n"
      File.write type_to_file.values.first, text
      text
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dogviz-0.0.21 lib/dogviz/rendered_sequence.rb
dogviz-0.0.20 lib/dogviz/rendered_sequence.rb
dogviz-0.0.19 lib/dogviz/rendered_sequence.rb
dogviz-0.0.18 lib/dogviz/rendered_sequence.rb