Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
#! /usr/bin/env ruby class Human def initialize(name) @name = name end def special puts "#{@name} is normal, no special abilities." end alias_method :abilities, :special end mohinder = Human.new('Mohinder') mohinder.special # Mohinder is normal, no special abilities. mohinder.abilities # Mohinder is normal, no special abilities.
From the Design Piracy series on my blog: