2013-12-11から1日間の記事一覧
class ClassName def method_name do_something if condition collection.map {|item| item.change.action param, hash: option } end protected def protected_method(x, y) if condition function x, y else function x + 2, y end end 普段こんな感じで書…