Sha256: ccc0d9cef6fc8ad34cd8815a29b94b1bfd342a294acabd077ddca3b54e55a1a7

Contents?: true

Size: 258 Bytes

Versions: 92

Compression:

Stored size: 258 Bytes

Contents

class Module
  def as_load_path
    if self == Object || self == Kernel
      ''
    elsif is_a? Class
      parent == self ? '' : parent.as_load_path
    else
      name.split('::').collect do |word|
        word.underscore
      end * '/'
    end
  end
end

Version data entries

92 entries across 92 versions & 7 rubygems

Version Path
backlog-0.5.6 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.5.7 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.5.8 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.5.9 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.0 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.2 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.1 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.4 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.5 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.3 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.0 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.6.6 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.1 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.10 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.12 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.11 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.2 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.3 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.5 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.7.4 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb