Skip to content

Instantly share code, notes, and snippets.

@gbpereira
Last active January 10, 2018 01:47
Show Gist options
  • Save gbpereira/7f499d795e0811a85329 to your computer and use it in GitHub Desktop.
Save gbpereira/7f499d795e0811a85329 to your computer and use it in GitHub Desktop.
class Box
#attr_writer
#attr_reader
attr_accessor :width
def initialize(w, h)
@width = w
@height = h
end
def height=(h)
@height = h
end
def height
@height
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment