class ExpressMailer::Table

Attributes

column_count[RW]
data[RW]

Public Class Methods

create(data) click to toggle source
# File lib/express_mailer/table.rb, line 5
def self.create(data)
  if data
    new(data)
  else
    nil
  end
end
new(data = []) click to toggle source
# File lib/express_mailer/table.rb, line 13
def initialize(data = [])
  @data = data
  @column_count = rows[0].size
end

Public Instance Methods

rows() click to toggle source
# File lib/express_mailer/table.rb, line 18
def rows
  @data
end