quattro_4 scribble

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

2013-04-29から1日間の記事一覧

RailsCasts #414 Batch API Requests pro

#414 Batch API Requests (pro) - RailsCasts update_many params[:ids] facebook graph api config.middleware.insert_before 0, "BatchRequests" app/middleware/batch_requests.rb env["PATH_INFO"] == "/batch" 途中から複雑になってきて流した coffeeの…

RubyTapas #016 - #020

016 super in Modules ★ defined?(super) を使う module YeOlde def hello(subject="World") if defined?(super) super else あるメソッド(sendとか)を上書きするmoduleがあった場合 original_send = Object.instance_method(:send) bound_send = original_s…

RubyTapas #088 - #090

088 Gem-Love Part 5 ? 前回のPart 4が前すぎて全く覚えてない 089 Coincidental Duplication ? Dry, eliminate duplication よくわからない 090 class << self ★ 良い点は class method -> instance methodへの変換が楽 悪い点は self. でメソッド検索で…