From 4a3a404a5cb2a8d5be83e28cec5c539928fa30f4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 6 Jan 2017 23:18:24 -0500 Subject: aaaah --- lib/category.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/category.rb (limited to 'lib/category.rb') diff --git a/lib/category.rb b/lib/category.rb new file mode 100644 index 0000000..266da34 --- /dev/null +++ b/lib/category.rb @@ -0,0 +1,20 @@ +# 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 "#{name}" + end + def atom + return "" + end +end -- cgit v1.2.3