We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input
class Barney: def __init__(self): self.status = 'not ok' barney = Barney() barney.status = "ok" print(barney.status)
Output
class Barney def initialize @status = 'not ok' end end barney = Barney.new barney.status = 'ok' puts barney.status
Error
undefined method status=' for #<Barney:0x007f837084d190 @status="not ok"> (NoMethodError)`
undefined method
The text was updated successfully, but these errors were encountered:
attr_reader
attr_writer
attr_accessor
Sorry, something went wrong.
alehander92
No branches or pull requests
Input
Output
Error
undefined method
status=' for #<Barney:0x007f837084d190 @status="not ok"> (NoMethodError)`The text was updated successfully, but these errors were encountered: