Module: Cinnabar::StrToPath::Ext
- Defined in:
- lib/cinnabar/path.rb
Overview
Implementation of the #to_path method intended to be mixed into String.
Instance Method Summary collapse
-
#to_path ⇒ Pathname
Convert the receiver (a String) into a Pathname.
Instance Method Details
#to_path ⇒ Pathname
Convert the receiver (a String) into a Pathname.
54 |
# File 'lib/cinnabar/path.rb', line 54 def to_path = ::Kernel.Pathname(self) |