Sha256: 22da9f0b72210aa6ef749d9fdec702e44702bc26aa7280536bed364e10688d96

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

require 'facets/string/pathize'

class Module

  # Converts a class name to a unix path.
  #
  #   module ::ExamplePathize
  #     module Example
  #     end
  #   end
  #
  #   ExamplePathize.pathize           #=> "example_pathize"
  #   ExamplePathize::Example.pathize  #=> "example_pathize/example"
  #
  def pathize
    name.pathize
  end

end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/module/pathize.rb
facets-3.1.0 lib/core/facets/module/pathize.rb
facets-3.0.0 lib/core/facets/module/pathize.rb
facets-2.9.3 lib/core/facets/module/pathize.rb
facets-2.9.2 src/core/facets/module/pathize.rb
facets-2.9.2 lib/core/facets/module/pathize.rb
facets-2.9.1 lib/core/facets/module/pathize.rb
facets-2.9.0 lib/core/facets/module/pathize.rb
facets-2.9.0.pre.2 lib/core/facets/module/pathize.rb
facets-2.9.0.pre.1 lib/core/facets/module/pathize.rb