module MrYahooFinance::Builder::Format::Period

Public Class Methods

periods(element, count) click to toggle source
# File lib/mr_yahoo_finance/builder/format.rb, line 37
def periods(element, count)
  [].tap do |ary|
    (0..(count-1)).map{|n| ary << element.css('th')[n].text}
  end
end