Created
January 5, 2016 15:14
-
-
Save cyrusclarke/aa7d3945433afd4d4684 to your computer and use it in GitHub Desktop.
Firehose Quiz 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Superhuman | |
#a Superhuman has a name and a unique power | |
attr_accessor :name, :power | |
def initialize(name,power) | |
@name = name | |
@power = power | |
end | |
def output_superhuman | |
puts "#{@name} is renowned for her #{@power} ability" | |
end | |
end | |
superhuman = Superhuman.new("Gallo", :flying) | |
superhuman.output_superhuman |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment