Last active
March 6, 2019 01:20
-
-
Save anthonygharvey/e8f1fa93f69114ea68f9a4a3b8ddc3e1 to your computer and use it in GitHub Desktop.
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 Movie | |
attr_accessor :finalized | |
attr_reader :title, :length, :budget | |
def title=(new_title) | |
if not @finalized | |
@title = new_title | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment