Skip to content

Conversation

dramanat
Copy link

@dramanat dramanat commented Mar 6, 2013

I'd like to do the eagle level, but don't want to get too far behind. Will come back to it.

@jwo
Copy link
Member

jwo commented Mar 6, 2013

This looks great! I had to search to try and find suggestions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting a little unwieldy. Could be better to either:

  1. Have a Suit class with its own to_s method (lots of work)
  2. Offload this logic to another method, like display_suit
def to_s
  [@value, display_suit].join('-')
end

def display_suit
  suit.to_s.chars.first.upcase
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants