Rochambeau for Class Creation in Ruby

There are three ways to create a class method in Ruby.

class Rock

def self.info

“Rock bashes scissors.”

end

end

 

class Paper

class << self

def info

“Paper wraps rock.”

end

end

end

 

class Scissors

end

 

def Scissors.info

“Scissors cut paper.”

end

 

p Rock.info

p Paper.info

p Scissors.info

More Ruby goodness: here, here, and here.

More rochambeau goodness:

RockPaperScissors

(Hat Tip: Emily L.)

Posted in Amusement, Useful Code, Web

Hilarious Lorem Ipsum

Lorem Ipsum for Business Here,  More Ipsums Here

Cipsum

Posted in Amusement, Fiddling & Time Wasters, Stock

Anchors Away

Anchors Away #logos #inspiration http://ow.ly/n8UuP

Posted in Amusement

Combine Analog & Digital in Your Illustration

This tutorial neatly shows how to push your illustration further. http://ow.ly/n8TO9

Posted in Amusement

Guide to Writing Design Case Studies

There is money to be made with a few case studies in your portfolio. Here’s how: http://ow.ly/n8Txb

Posted in Amusement