Method: Charty::Table#each

Defined in:
lib/charty/table.rb

#eachObject



113
114
115
116
117
118
119
120
121
# File 'lib/charty/table.rb', line 113

def each
  return to_enum(__method__) unless block_given?
  data = to_a
  i, n = 0, data.size
  while i < n
    yield data[i]
    i += 1
  end
end