Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/rubyqc/prelude.rb,
lib/rubyqc/prelude.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.rubyqc ⇒ Object
134 135 136 137 138 139 140 141 142 |
# File 'lib/rubyqc/prelude.rb', line 134 def self.rubyqc Object.constants.map{ |name| # rubinius # jruby if ![:BasicObject, :Class, :Config, :Data, :Autoload, :Continuation, :RubyVM, :Struct, :WeakRef, :TracePoint].include?(name) && name !~ /Java/ const_get(name) end }.select{ |const| const.kind_of?(Class) }.sample end |
Instance Method Details
#rubyqc ⇒ Object
26 27 28 29 30 31 |
# File 'lib/rubyqc/prelude.rb', line 26 def rubyqc new rescue => e warn "Cannot new #{self}: #{e}" raise end |