Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am shivak on github.
  • I am shivak (https://keybase.io/shivak) on keybase.
  • I have a public key ASBUdKeclAcYmYJMeNl2ekt-eiP-4QS-dFQTid-KYtA2pAo

To claim this, I am signing this object:

Verifying that +shivak is my blockchain ID. https://onename.com/shivak
wesbailey@feynman:~> irb
ruby-1.9.2-p0 > class NeverWriteCodeLikeThis
ruby-1.9.2-p0 ?> @@actions = ["create", "retrieve", "update"]
ruby-1.9.2-p0 ?>
ruby-1.9.2-p0 > def initialize(val)
ruby-1.9.2-p0 ?> @@actions.each do |m| # ["create", "retrieve", "update"].each do |m|
ruby-1.9.2-p0 > instance_variable_set("@#{m}_process".to_sym, val) # instance_variable_set("@create_process".to_sym, val)
ruby-1.9.2-p0 ?> end # end
ruby-1.9.2-p0 ?> end
ruby-1.9.2-p0 ?> end