Module: Goods::Container
- Included in:
- CategoriesList, CurrenciesList, OffersList
- Defined in:
- lib/goods/container.rb
Defined Under Namespace
Modules: ContainerMethods, SearchMethods
Instance Method Summary collapse
Instance Method Details
#container_for(klass) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/goods/container.rb', line 3 def container_for(klass) define_singleton_method :_containable_class do klass end include ContainerMethods include Enumerable # Need to redefine Enumerable#find include SearchMethods end |