diff options
Diffstat (limited to 'spec/ruby/optional/capi/fixtures/class.rb')
| -rw-r--r-- | spec/ruby/optional/capi/fixtures/class.rb | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/fixtures/class.rb b/spec/ruby/optional/capi/fixtures/class.rb index de824b3ab0..b463e3b4c3 100644 --- a/spec/ruby/optional/capi/fixtures/class.rb +++ b/spec/ruby/optional/capi/fixtures/class.rb @@ -15,6 +15,16 @@ class CApiClassSpecs end end + class KeywordAlloc + attr_reader :initialized, :args, :kwargs + + def initialize(*args, **kwargs) + @initialized = true + @args = args + @kwargs = kwargs + end + end + class Attr def initialize @foo, @bar, @baz = 1, 2, 3 @@ -68,15 +78,27 @@ class CApiClassSpecs class SubSub < Sub def call_super_method - :subclass_method + :subsubclass_method + end + end + + class SuperSelf + def call_super_method + self end end + class SubSelf < SuperSelf + end + class A C = 1 autoload :D, File.expand_path('../path_to_class.rb', __FILE__) class B end + + module M + end end end |
