lib/ratebeer/brewery/beer_list.rb
# Processes the cell containing the beer's name and other information.
#
# This cell contains information on the beer's name, its style, whether it
# is retired, and who is was brewed for or by.
Processes the cell containing the beer's name and other information.
This cell contains information on the beer's name, its style, whether it
is retired, and who is was brewed for or by.
Processes the cell containing the beer ' s name and other information . This cell contains information on the beer ' s name its style whether it is retired and who is was brewed for or by .
def process_beer_name_cell(node)
        beer_link = node.at_css('strong a')
        name = fix_characters(beer_link.text)
        id = id_from_link(beer_link)
        info = node.at_css('em.real-small')
        brewed_at_for = process_brewed_at_for(node)
        style = process_style_info(node)
        { id:     id,
          name:   name,
          style:  style,
          retired:  info && info.text =~ /retired/ || false }.merge(brewed_at_for)
      end
def process_beer_name_cell ( node ) beer_link = node . at_css ( 'strong a' ) name = fix_characters ( beer_link . text ) id = id_from_link ( beer_link ) info = node . at_css ( 'em.real-small' ) brewed_at_for = process_brewed_at_for ( node ) style = process_style_info ( node ) { id : id , name : name , style : style , retired : info && info . text =~ / retired / || false } . merge ( brewed_at_for ) end
Processes the cell containing the beer's name and other information.
Processes the cell containing the beer ' s name and other information .
node