class RFlare::Spreadsheet
Attributes
col_bounds[R]
row_bounds[R]
Public Class Methods
new(arr_of_rows)
click to toggle source
# File lib/rflare.rb, line 117 def initialize arr_of_rows @data = arr_of_rows @row_bounds = @data.bounds @col_bounds = @data.empty? ? (0...0) : @data[0].bounds end
Public Instance Methods
[](row, col)
click to toggle source
# File lib/rflare.rb, line 123 def [] row, col if @row_bounds.include? row and @col_bounds.include? col @data[row][col] else nil end end