Skip to content

Commit

Permalink
Adding print statements to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaklakhera authored and deepaklakhera committed Jan 9, 2025
1 parent 0fb70ad commit 4099968
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rhykane/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ def initialize(*, **)
end

def puts(*rows)
puts "rows: #{rows}"
inputs = *rows.compact.map(&method(:row_to_csv).to_proc)
puts "inputs: #{inputs}"
io.puts(*inputs) unless inputs.empty?
end

private
def row_to_csv(row)
puts "row_to_csv_row: #{row}"
return ::CSV::Row.new([], []) if row.nil?
case row
in **row
Expand Down

0 comments on commit 4099968

Please sign in to comment.