summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/fixtures/object.rb
blob: a59f2309d854a02eaf6b1568f947ef32fe1daed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class CApiObjectSpecs
  class IVars
    def initialize
      @a = 3
      @b = 7
      @c = 4
    end

    def self.set_class_variables
      @@foo = :a
      @@bar = :b
      @@baz = :c
    end
  end

  module MVars
    @@mvar = :foo
    @@mvar2 = :bar

    @ivar = :baz
  end

  module CVars
    @@cvar = :foo
    @@cvar2 = :bar

    @ivar = :baz
  end
end