Skip to content

Instantly share code, notes, and snippets.

@cpfarher
Created December 22, 2017 19:16
Show Gist options
  • Select an option

  • Save cpfarher/fa6ab90db3ec689e153fefab570faf46 to your computer and use it in GitHub Desktop.

Select an option

Save cpfarher/fa6ab90db3ec689e153fefab570faf46 to your computer and use it in GitHub Desktop.
require 'singleton'
class Connection
include Singleton
attr_accessor :data
def initialize
@data = {}
end
def add key, value
@data[key] = value
end
def version
'0.0.1'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment