lib/ratebeer/brewery/beer_list.rb
# Processes the style information contained within a beer name cell.
Processes the style information contained within a beer name cell.
Processes the style information contained within a beer name cell .
def process_style_info(node)
        style_node = node.css('a').find do |n|
          n.children.any? { |c| c.name == 'span' }
        end
        name = style_node.text
        id = id_from_link(style_node)
        Style.new(id, name: name)
      end
def process_style_info ( node ) style_node = node . css ( 'a' ) . find do | n | n . children . any? { | c | c . name == 'span' } end name = style_node . text id = id_from_link ( style_node ) Style . new ( id , name : name ) end
Processes the style information contained within a beer name cell.
Processes the style information contained within a beer name cell .
node