#! /usr/bin/env ruby
classHumandefinitialize(name)@name= name
enddefspecial
puts "#{@name} is normal, no special abilities."endalias_method:abilities,:specialendclassHero< Humanattr_accessor:powersdefspecialsuperunless@powers
puts "#{@name} is a hero - he/she can #{@powers}"endend
mohinder =Human.new('Mohinder')
mohinder.special # Mohinder is normal, no special abilities.
mohinder.abilities # Mohinder is normal, no special abilities.
peter =Hero.new('Peter Petrelli')
peter.powers ="mimic the powers of other heroes nearby, fly, and read minds"
peter.special # Peter Petrelli is a hero - he/she can mimic the powers of other heroes nearby, fly, and read minds
peter.abilities # Peter Petrelli is a hero - he/she can mimic the powers of other heroes nearby, fly, and read minds