Module: ProMotion::CollectionViewCellModule

Includes:
Styling
Included in:
CollectionViewCell
Defined in:
lib/ProMotion/collection/cell/collection_view_cell_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Styling

#add, #add_to, #camelize, #closest_parent, #content_height, #content_max, #content_width, #hex_color, #remove, #rgb_color, #rgba_color, #set_attribute, #set_attributes, #view_or_self

Instance Attribute Details

#collection_screenObject

Returns the value of attribute collection_screen.



5
6
7
# File 'lib/ProMotion/collection/cell/collection_view_cell_module.rb', line 5

def collection_screen
  @collection_screen
end

#data_cellObject

Returns the value of attribute data_cell.



5
6
7
# File 'lib/ProMotion/collection/cell/collection_view_cell_module.rb', line 5

def data_cell
  @data_cell
end

Instance Method Details

#prepareForReuseObject



12
13
14
15
# File 'lib/ProMotion/collection/cell/collection_view_cell_module.rb', line 12

def prepareForReuse
  super
  self.send(:prepare_for_reuse) if self.respond_to?(:prepare_for_reuse)
end

#setup(data_cell, screen) ⇒ Object



7
8
9
10
# File 'lib/ProMotion/collection/cell/collection_view_cell_module.rb', line 7

def setup(data_cell, screen)
  self.collection_screen = WeakRef.new(screen)
  self.data_cell         = data_cell
end