Module: Singleton

Defined in:
lib/red_query/singleton.rb

Class Method Summary collapse

Class Method Details

.instanceObject



2
3
4
5
6
7
8
# File 'lib/red_query/singleton.rb', line 2

def self.instance
  if !@__instance__
    @__instance__ = self.new
    # puts "new instance of #{@__instance__.class}"
  end
  @__instance__
end