Class: ExpressTemplates::Components::All
- Inherits:
-
Container
- Object
- Arbre::Component
- Base
- Configurable
- Container
- ExpressTemplates::Components::All
- Defined in:
- lib/express_templates/components/all.rb
Instance Method Summary collapse
Methods inherited from Container
#appended, appends, #call_block, #prepended, prepends
Methods inherited from Configurable
#build, #config, emits, has_argument, has_option, #required_options
Methods inherited from Base
#assigns, before_build, #build, builder_method_and_class, builder_method_name, #builder_method_name, contains, descendants, has_attributes, inherited, #initialize, #resource, tag
Constructor Details
This class inherits a constructor from ExpressTemplates::Components::Base
Instance Method Details
#collection ⇒ Object
20 21 22 |
# File 'lib/express_templates/components/all.rb', line 20 def collection self.send(config[:collection_name]) end |
#member_name ⇒ Object
16 17 18 |
# File 'lib/express_templates/components/all.rb', line 16 def member_name config[:collection_name].to_s.singularize.to_sym end |