lib/exporter/document.rb in exporter-0.0.2 vs lib/exporter/document.rb in exporter-0.0.3
- old
+ new
@@ -3,11 +3,11 @@
attr_reader :data
def initialize(data)
@data = data
end
-
+
def to_file(path)
- raise NotImplementedError.new("You must implement this to_file method.")
+ File.open(path, 'w') {|f| f.write(@data) }
end
end
end
\ No newline at end of file