dblandin/motion-blitz

View on GitHub
app/motion_blitz_demo.rb

Summary

Maintainability
A
0 mins
Test Coverage
class MotionBlitzDemo < UITableView
  def initWithFrame(frame, style: style)
    super.tap do |table_view|
      table_view.dataSource = manager
      table_view.delegate   = manager

      table_view.registerClass(UITableViewCell, forCellReuseIdentifier: 'BlitzDemoCell')
    end
  end

  private

  def manager
    @manager ||= MotionBlitzDemoManager.new
  end
end