Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don’t set up a tracepoint unless the subclass has a name

+1 -1
+1 -1
lib/literal/enum.rb
··· 24 24 @names = {} 25 25 end 26 26 27 - if RUBY_ENGINE != "truffleruby" 27 + if subclass.name && RUBY_ENGINE != "truffleruby" 28 28 TracePoint.trace(:end) do |tp| 29 29 if tp.self == subclass 30 30 tp.self.__after_defined__