quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

MotionInMotion Episode 32 - Classes to Procs to Blocks

Classes to Procs to Blocks - MotionInMotion

Classをblockとして使う

  • MainViewStyler
    • def to_proc
      • -> (view) {
        • view.name_label.text = "#{@person.first_name} #{@person.last_name}"
  • MainController
    • loadView
      • view.tap &MainViewStyler.new(@model)
  • APIManager
    • def self.run
      • yield({"firstName" => "Jane",