Permalink
Browse files

add Fancy wrappers for File##join: & File##dirname:

  • Loading branch information...
1 parent 7fb6d35 commit 3af8576feb79f3f40e22d0278c9c9a0839ea28ad @bakkdoor committed Dec 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/rbx/file.fy
View
@@ -8,7 +8,9 @@ class File {
'truncate => "w+"]>
ruby_aliases: [ 'eof?, 'closed?, 'flush ]
+
metaclass alias_method: 'expand_path: for_ruby: 'expand_path
+ metaclass alias_method: 'dirname: for_ruby: 'dirname
forwards_unary_ruby_methods
@@ -170,6 +172,10 @@ class File {
File expand_path: filename
}
+ def File join: path_components {
+ File join(*path_components)
+ }
+
def initialize: path {
initialize(path)
}

0 comments on commit 3af8576

Please sign in to comment.