summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/fixtures/class.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-13 21:58:54 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-13 21:58:54 +0000
commitb46da8d84efeb97cb52ba0560d5b149ccda0d561 (patch)
tree382ba848ef97215f1a5ec991727db3ed7f90973c /spec/ruby/optional/capi/fixtures/class.rb
parent5b55eaa00db05004d1a6b74c3aaa5e680fc73235 (diff)
Update to ruby/spec@4bb0f25
* Specs added by TruffleRuby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/optional/capi/fixtures/class.rb')
-rw-r--r--spec/ruby/optional/capi/fixtures/class.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/fixtures/class.rb b/spec/ruby/optional/capi/fixtures/class.rb
index de824b3ab0..dbb0b69967 100644
--- a/spec/ruby/optional/capi/fixtures/class.rb
+++ b/spec/ruby/optional/capi/fixtures/class.rb
@@ -68,10 +68,19 @@ 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__)