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}"
- -> (view) {
- def to_proc
- MainController
- loadView
- view.tap &MainViewStyler.new(@model)
- loadView
- APIManager
- def self.run
- yield({"firstName" => "Jane",
- def self.run