388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
|
# File 'lib/hwidgets/hwidget.rb', line 388
def self.widgetSpace()
puts "###########################################################".hight_white
puts "# #".hight_white
puts "# Hypersonic Object Space #".hight_white
puts "# #".hight_white
puts "###########################################################".hight_white
objs = []
ObjectSpace.each_object() {|obj| objs << obj if obj.class <= HWidget }
objs.each do |obj|
puts "#{obj.object_id.to_s.hight_purple}: #{obj.class.to_s.yellow} - #{obj.tag.hight_cyan} #{obj.get(:class)}"
end
return "Total Widgets: #{objs.length}".green
end
|