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
activesupport-2.0.0 lib/active_support/core_ext/module/loading.rb
activesupport-1.4.1 lib/active_support/core_ext/module/loading.rb
activesupport-1.3.1 lib/active_support/core_ext/module/loading.rb
activesupport-1.4.4 lib/active_support/core_ext/module/loading.rb
activesupport-1.4.0 lib/active_support/core_ext/module/loading.rb
activesupport-1.3.0 lib/active_support/core_ext/module/loading.rb
activesupport-2.0.1 lib/active_support/core_ext/module/loading.rb
activesupport-1.4.3 lib/active_support/core_ext/module/loading.rb
activesupport-1.4.2 lib/active_support/core_ext/module/loading.rb
activesupport-2.0.2 lib/active_support/core_ext/module/loading.rb
activesupport-2.0.4 lib/active_support/core_ext/module/loading.rb
activesupport-2.0.5 lib/active_support/core_ext/module/loading.rb
backlog-0.0.0 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.0.1 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.0.2 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.0.5 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.0.4 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.1.0 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.1.1 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb
backlog-0.1.2 vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb