class SimpleCSV::String
Public Class Methods
new(string, *args)
click to toggle source
Calls superclass method
SimpleCSV::new
# File lib/SimpleCSV/String.rb, line 20 def initialize(string, *args) @string = string super(source, *args) end
open(source, *args, &block)
click to toggle source
Calls superclass method
SimpleCSV::open
# File lib/SimpleCSV/String.rb, line 13 def open(source, *args, &block) @csv_file = new(source, *args) super(source, *args, &block) end
Public Instance Methods
source()
click to toggle source
# File lib/SimpleCSV/String.rb, line 25 def source @source ||= StringIO.new(@string) end