src/format_helper.rb
# TODO: refactor this, inconsistent with other method
refactor this, inconsistent with other method
refactor this inconsistent with other method
def print_news(data)
    result = ''
    unless data.nil?
      data.each do |hash|
        result << "<a href='#{hash[:url]}'>#{hash[:title]}</a>\n"
        result << "#{hash[:date]}\n\n"
      end
    end
    result
  end
def print_news ( data ) result = '' unless data . nil? data . each do | hash | result << "<a href='#{hash[:url]}'>#{hash[:title]}</a>\n" result << "#{hash[:date]}\n\n" end end result end
TODO: refactor this, inconsistent with other method
TODO : refactor this inconsistent with other method
data
<not_specific>