タグ

ブックマーク / caiustheory.com (1)

  • evil.rb

    2013-01-23 11:07:43Here be hax. Don’t ever do these. ;-) Reduce local variables with instance_evalSometimes (usually in a one-liner) I want to do some work with a value without assigning it to a variable. Chucking an #instance_eval call in there will set self to the value, which saves having to assign it to a local value. Pretty much only used by me in one-off scripts or cli commands. Good start_d

    mizchi
    mizchi 2013/01/23
  • 1