Class: MPCollectionCellWithSection
- Inherits:
-
UICollectionViewCell
- Object
- UICollectionViewCell
- MPCollectionCellWithSection
- Defined in:
- motion-prime/support/mp_collection_cell_with_section.rb
Instance Attribute Summary collapse
-
#section ⇒ Object
readonly
Returns the value of attribute section.
Instance Method Summary collapse
Instance Attribute Details
#section ⇒ Object (readonly)
Returns the value of attribute section.
2 3 4 |
# File 'motion-prime/support/mp_collection_cell_with_section.rb', line 2 def section @section end |
Instance Method Details
#drawRect(rect) ⇒ Object
8 9 10 11 |
# File 'motion-prime/support/mp_collection_cell_with_section.rb', line 8 def drawRect(rect) section.try(:draw_in, rect) super end |
#setSection(section) ⇒ Object
4 5 6 |
# File 'motion-prime/support/mp_collection_cell_with_section.rb', line 4 def setSection(section) @section = section.try(:weak_ref) end |