Sha256: 9fec9254c404cac67b7349412d40a2f4db17c10cf311e8fec6f436e9a9a117a5

Contents?: true

Size: 189 Bytes

Versions: 33

Compression:

Stored size: 189 Bytes

Contents

module Traits
  
  # A List all Traits.
  #
  def self.list
    ObjectSpace.each_object.select { |object| object.kind_of?(Trait) }.sort!{ |moda, modb| moda.to_s <=> modb.to_s }
  end
  
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gosu_extensions-0.3.8 lib/core/traits.rb
gosu_extensions-0.3.7 lib/core/traits.rb
gosu_extensions-0.3.6 lib/core/traits.rb
gosu_extensions-0.3.5 lib/core/traits.rb
gosu_extensions-0.3.4 lib/core/traits.rb
gosu_extensions-0.3.3 lib/core/traits.rb
gosu_extensions-0.3.2 lib/core/traits.rb
gosu_extensions-0.3.1 lib/core/traits.rb
gosu_extensions-0.3.0 lib/core/traits.rb
gosu_extensions-0.2.9 lib/core/traits.rb
gosu_extensions-0.2.8 lib/core/traits.rb
gosu_extensions-0.2.7 lib/core/traits.rb
gosu_extensions-0.2.6 lib/core/traits.rb
gosu_extensions-0.2.5 lib/core/traits.rb
gosu_extensions-0.2.4 lib/core/traits.rb
gosu_extensions-0.2.3 lib/core/traits.rb
gosu_extensions-0.2.2 lib/core/traits.rb
gosu_extensions-0.2.1 lib/core/traits.rb
gosu_extensions-0.2.0 lib/core/traits.rb
gosu_extensions-0.1.28 lib/core/traits.rb