Sha256: 73e32638bebffe1727bb2b499439ffb47389461722726f4ea5a0b5f2aaa5ff9e

Contents?: true

Size: 165 Bytes

Versions: 14

Compression:

Stored size: 165 Bytes

Contents

Object.instance_eval do
  def all_subclasses
    klasses = self.subclasses
    (klasses | klasses.collect do |klass| klass.all_subclasses end).flatten.uniq
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
erp_base_erp_svcs-3.1.5 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.1.4 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.1.3 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.1.2 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.1.1 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.7 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.1.0 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.6 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.5 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.4 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.3 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.2 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.1 lib/erp_base_erp_svcs/extensions/core/object.rb
erp_base_erp_svcs-3.0.0 lib/erp_base_erp_svcs/extensions/core/object.rb