Skip to content

Instantly share code, notes, and snippets.

@cyrusclarke
Created January 5, 2016 15:14
Show Gist options
  • Save cyrusclarke/aa7d3945433afd4d4684 to your computer and use it in GitHub Desktop.
Save cyrusclarke/aa7d3945433afd4d4684 to your computer and use it in GitHub Desktop.
Firehose Quiz 3
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