Class: Messaging::Adapters::Postgres::Categories
- Inherits:
-
Object
- Object
- Messaging::Adapters::Postgres::Categories
- Includes:
- Enumerable
- Defined in:
- lib/messaging/adapters/postgres/categories.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
15 16 17 |
# File 'lib/messaging/adapters/postgres/categories.rb', line 15 def [](name) Category.new(name) end |
#each ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/messaging/adapters/postgres/categories.rb', line 7 def each return enum_for(:each) unless block_given? all_categories.each do |name| yield Category.new(name) end end |