Skip to content

Instantly share code, notes, and snippets.

@taf2
Created January 9, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taf2/a9b228f5c64c274e044f9afacb0f8944 to your computer and use it in GitHub Desktop.
Save taf2/a9b228f5c64c274e044f9afacb0f8944 to your computer and use it in GitHub Desktop.
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