Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/foo.rb Secret

Created June 29, 2020 19:33
Show Gist options
  • Save havenwood/8f1e286de40c7d7e267b9a5d898bc382 to your computer and use it in GitHub Desktop.
Save havenwood/8f1e286de40c7d7e267b9a5d898bc382 to your computer and use it in GitHub Desktop.
class Foo
attr_reader :doomlist3
def doomlist3=(doomlist3)
@doomlist3 = doomlist3
end
end
foo = Foo.new
foo.doomlist3 = 42
foo.doomlist3
#=> 42
@havenwood
Copy link
Author

class Foo
  attr_accessor :doomlist3
end

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