Created
January 9, 2020 18:28
-
-
Save taf2/a9b228f5c64c274e044f9afacb0f8944 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 ObjectThing | |
extend PropertyAttributeHelper | |
property :my_options, :my__value # adding an extra underscore to indicate private | |
def my_value | |
my__value.nil? ? true : my__value | |
end | |
def my_value=(v) | |
my__value = v | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment