Skip to content

Instantly share code, notes, and snippets.

@mariorcardoso
Created June 17, 2017 16:46
Show Gist options
  • Save mariorcardoso/56a7201188dcaceef5592e39b694dcb3 to your computer and use it in GitHub Desktop.
Save mariorcardoso/56a7201188dcaceef5592e39b694dcb3 to your computer and use it in GitHub Desktop.
class Address
attr_reader :city, :state
def initialize(city, state)
@city, @state = city, state
end
def ==(other_address)
city == other_address.city && state == other_address.state
end
end
@mariorcardoso
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment