Module: Halogen::Collection::InstanceMethods
- Defined in:
- lib/halogen/collection.rb
Overview
:nodoc:
Instance Method Summary collapse
- #collection? ⇒ Boolean
-
#embed?(key) ⇒ true, false
Ensure that the primary collection is always embedded.
Instance Method Details
#collection? ⇒ Boolean
45 46 47 |
# File 'lib/halogen/collection.rb', line 45 def collection? true end |
#embed?(key) ⇒ true, false
Ensure that the primary collection is always embedded
41 42 43 |
# File 'lib/halogen/collection.rb', line 41 def (key) key == self.class.collection_name end |