Skip to content

Instantly share code, notes, and snippets.

@marcoroman89
Created July 30, 2013 14:59
Show Gist options
  • Save marcoroman89/6113711 to your computer and use it in GitHub Desktop.
Save marcoroman89/6113711 to your computer and use it in GitHub Desktop.
Getters and Setters
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