Created
July 25, 2019 21:19
-
-
Save nafidurmus/28c39cbc49a2e87cbe14210340c86405 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
require 'singleton' | |
class SingletonObject | |
include Singleton | |
attr_accessor :counter | |
def initialize | |
@counter = 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment