module PowerSchool

Constants

VERSION

Public Class Methods

table_to_a( html, css ) click to toggle source
# File lib/power_school.rb, line 14
def self.table_to_a( html, css )
    resArray = Nokogiri::HTML(html).css(css).to_a
    resArray = resArray.map {|row| row.css("td").map {|c| c.text}.to_a }
    resArray.shift
    resArray
end