# coding: utf-8
require 'config'
class Category
def initialize(abbr)
@abbr = abbr
end
def abbr
@abbr
end
def name
Config::get.category_name(@abbr)
end
def html
return "<a class=\"tag #{abbr}\" href=\"/tags/#{abbr}.html\">#{name}</a>"
end
def atom
return "<category term=\"#{abbr}\" label=\"#{name}\" />"
end
end