Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby for your two internal programmers

Ruby for your two internal programmers

My Arrrrcamp 2013 talk

Jano González

October 03, 2013

More Decks by Jano González

Other Decks in Programming


  1. THINKER class AccountProtectionProxy def initialize(real_account, owner) @subject = real_account @owner

    = owner end def method_missing(name, *args) check_access @subject.send(name, *args) end ...
  2. EXAMPLE case account_type when :premium then # do stuff when

    :standard then # do stuff when :personal then # do stuff end
  3. IMAGES • http://en.wikipedia.org/wiki/File: 1590_or_later_Marcus_Gheeraerts,_Sir_Francis_Drake_Buckland_Abbey, _Devon.jpg • http://en.wikipedia.org/wiki/File:New_Albion._English_galleon_ %22Golden_Hinde %22_by_Sir_Francis_Drake._Oil_on_canvas._60_x_90_cm..jpg •

    http://en.wikipedia.org/wiki/File:DRAKE_1577-1580.png • http://www.vivimoslanoticia.cl/wp-content/uploads/2013/09/Pel %C3%ADculas-piratas.jpg • http://radiopolar.com/images/noticias/20101127174025.jpg • http://upload.wikimedia.org/wikipedia/commons/a/aa/Isla_Mocha_1.jpg • http://www.todayifoundout.com/wp-content/uploads/2011/12/Moby- Dick-3.jpg