Method: Module#pathize
- Defined in:
- lib/core/facets/module/pathize.rb
#pathize ⇒ Object
Converts a class name to a unix path.
module ::ExamplePathize
module Example
end
end
ExamplePathize.pathize #=> "example_pathize"
ExamplePathize::Example.pathize #=> "example_pathize/example"
15 16 17 |
# File 'lib/core/facets/module/pathize.rb', line 15 def pathize name.pathize end |