1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/optional/capi/fixtures/object.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
359 B
Ruby
Raw Normal View History

2022-09-28 12:37:17 -04:00
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