Sha256: 49c8911202be29b7623401761136c34cfca56563cb41052b706501e6a0c7b89a

Contents?: true

Size: 231 Bytes

Versions: 14

Compression:

Stored size: 231 Bytes

Contents

module CabbageDoc
  module Singleton
    class << self
      def included(base)
        base.extend(ClassMethods)
      end
    end

    module ClassMethods
      def instance
        @_instance ||= new
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cabbage_doc-0.1.4 lib/cabbage_doc/singleton.rb
cabbage_doc-0.1.3 lib/cabbage_doc/singleton.rb
cabbage_doc-0.1.2 lib/cabbage_doc/singleton.rb
cabbage_doc-0.1.1 lib/cabbage_doc/singleton.rb
cabbage_doc-0.1.0 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.9 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.8 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.7 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.6 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.5 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.4 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.3 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.2 lib/cabbage_doc/singleton.rb
cabbage_doc-0.0.1 lib/cabbage_doc/singleton.rb