summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/singleton/fixtures/classes.rb
blob: c718ebaec87c73fbc0d557443a7f5c1b1fd9cef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'singleton'

module SingletonSpecs
  class MyClass
    attr_accessor :data
    include Singleton
  end

  class NewSpec
    include Singleton
  end

  class MyClassChild < MyClass
  end

  class NotInstantiated < MyClass
  end
end