class Location

class Rwanda

Public Instance Methods

to_html() click to toggle source
# File lib/rwanda/rails/location.rb, line 3
def to_html
  if present?
    to_h.inject([]) { |r, (k,v)| r << "<b>#{v}</b> #{k.to_s.capitalize}" if v; r }.join(', ').html_safe
  else
    'Unknown'.html_safe
  end
end