Sha256: 7422724d294054efa981d5f768d3b6f6e216f76c303b0da571f340a589896bc2
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
module Indexing class Categories attr_reader :categories each_delegate :index, :cache, :generate_caches, :backup_caches, :restore_caches, :check_caches, :clear_caches, :create_directory_structure, :to => :categories def initialize @categories = [] end def << category categories << category end def find category_name category_name = category_name.to_sym categories.each do |category| next unless category.name == category_name return category end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-0.11.0 | lib/picky/indexing/categories.rb |