Module: Dire::Module::Path
- Defined in:
- lib/dire/module/path.rb
Instance Method Summary collapse
Instance Method Details
#absolute_path ⇒ Object
2 3 4 |
# File 'lib/dire/module/path.rb', line 2 def absolute_path path end |
#name ⇒ Object
6 7 8 |
# File 'lib/dire/module/path.rb', line 6 def name absolute_path.basename.to_s end |
#param ⇒ Object
10 11 12 |
# File 'lib/dire/module/path.rb', line 10 def param relative_path.to_s end |
#relative_path ⇒ Object
14 15 16 |
# File 'lib/dire/module/path.rb', line 14 def relative_path chop path end |