Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/torquebox/vfs/ext/pathname.rb
Instance Method Summary collapse
- #realpath ⇒ Object
- #realpath_without_vfs ⇒ Object
- #relative? ⇒ Boolean
- #relative_without_vfs ⇒ Object
- #vfs_path? ⇒ Boolean
Instance Method Details
#realpath ⇒ Object
25 26 27 |
# File 'lib/torquebox/vfs/ext/pathname.rb', line 25 def realpath vfs_path? ? : realpath_without_vfs end |
#realpath_without_vfs ⇒ Object
22 |
# File 'lib/torquebox/vfs/ext/pathname.rb', line 22 alias_method :realpath_without_vfs, :realpath |
#relative? ⇒ Boolean
33 34 35 |
# File 'lib/torquebox/vfs/ext/pathname.rb', line 33 def relative? vfs_path? ? false : relative_without_vfs end |
#relative_without_vfs ⇒ Object
23 |
# File 'lib/torquebox/vfs/ext/pathname.rb', line 23 alias_method :relative_without_vfs, :relative? |
#vfs_path? ⇒ Boolean
29 30 31 |
# File 'lib/torquebox/vfs/ext/pathname.rb', line 29 def vfs_path? @path.to_s =~ /^vfs:/ end |