lib/saviour/string_source.rb in saviour-0.3.1 vs lib/saviour/string_source.rb in saviour-0.4.0
- old
+ new
@@ -1,12 +1,17 @@
module Saviour
class StringSource
def initialize(value, filename = nil)
- @value, @filename = value, filename
+ @value = StringIO.new(value)
+ @filename = filename
end
- def read
- @value
+ def read(*args)
+ @value.read(*args)
+ end
+
+ def rewind
+ @value.rewind
end
def original_filename
@filename
end
\ No newline at end of file