summaryrefslogtreecommitdiff
path: root/lib/ffi-xattr/extensions/pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi-xattr/extensions/pathname.rb')
-rw-r--r--lib/ffi-xattr/extensions/pathname.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ffi-xattr/extensions/pathname.rb b/lib/ffi-xattr/extensions/pathname.rb
new file mode 100644
index 0000000..c2ed11e
--- /dev/null
+++ b/lib/ffi-xattr/extensions/pathname.rb
@@ -0,0 +1,9 @@
+require 'ffi-xattr/extensions/file'
+
+class Pathname
+ # Returns an Xattr object.
+ # See File.xattr.
+ def xattr
+ File.xattr(self)
+ end
+end