Created
July 30, 2013 14:59
-
-
Save marcoroman89/6113711 to your computer and use it in GitHub Desktop.
Getters and Setters
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 Card | |
attr_accessor :suit, :face_value | |
def initialize(s, fv) | |
@suit = s | |
@face_value = fv | |
end | |
def suit_output | |
puts "The #{face_value} of #{find_suit}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment