Sha256: da6514ea1cc6b9b0677efea3c0e88e7792119a4a713abdfafd5416a89b813e71
Contents?: true
Size: 691 Bytes
Versions: 37
Compression:
Stored size: 691 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt # COSMOS specific additions to the ObjectSpace class module ObjectSpace def self.find(klass) ObjectSpace.each_object(klass) do |object| return object end nil end def self.find_all(klass) objects = [] ObjectSpace.each_object(klass) do |object| objects << object end objects end end # class ObjectSpace
Version data entries
37 entries across 37 versions & 1 rubygems