Sha256: b9c97b4bd71b9a2dd63007f80556c4ce296a73a0b5b9b7cf0032e74fd24996dc

Contents?: true

Size: 306 Bytes

Versions: 38

Compression:

Stored size: 306 Bytes

Contents

module Saviour
  class StringSource
    def initialize(value, filename = nil)
      @value = StringIO.new(value)
      @filename = filename
    end

    def read(*args)
      @value.read(*args)
    end

    def rewind
      @value.rewind
    end

    def original_filename
      @filename
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
saviour-0.6.10 lib/saviour/string_source.rb
saviour-0.6.9 lib/saviour/string_source.rb
saviour-0.6.8 lib/saviour/string_source.rb
saviour-0.6.7 lib/saviour/string_source.rb
saviour-0.6.6 lib/saviour/string_source.rb
saviour-0.6.5 lib/saviour/string_source.rb
saviour-0.6.4 lib/saviour/string_source.rb
saviour-0.6.3 lib/saviour/string_source.rb
saviour-0.6.2 lib/saviour/string_source.rb
saviour-0.6.1 lib/saviour/string_source.rb
saviour-0.6.0 lib/saviour/string_source.rb
saviour-0.5.11 lib/saviour/string_source.rb
saviour-0.5.10 lib/saviour/string_source.rb
saviour-0.5.9 lib/saviour/string_source.rb
saviour-0.5.8 lib/saviour/string_source.rb
saviour-0.5.7 lib/saviour/string_source.rb
saviour-0.5.6 lib/saviour/string_source.rb
saviour-0.5.5 lib/saviour/string_source.rb
saviour-0.5.4 lib/saviour/string_source.rb
saviour-0.5.3 lib/saviour/string_source.rb