lib/cantango/configuration/categories.rb in cantango-config-0.1.2 vs lib/cantango/configuration/categories.rb in cantango-config-0.1.3

- old
+ new

@@ -33,25 +33,8 @@ found_categories = registered.select do |cat, subjects| subjects.include? subject.to_s end found_categories.empty? ? {} : found_categories end - - class Category - def initialize *subjects - @subjects = subjects.flatten - end - - def subjects - @subjects ||= [] - end - - # test if a particular category has a certain subject - def has_any? subject, &block - found = subjects.include? subject - yield if found && block - found - end - end end end end