Skip to content

Commit

Permalink
Add stdlib placeholders for File and Dir
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 9, 2013
1 parent 9b3937e commit de877b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/dir.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Dir
def self.getwd
'.'
end
end
7 changes: 7 additions & 0 deletions stdlib/file.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class File
SEPARATOR = '/'

def self.expand_path(path)
path
end
end

0 comments on commit de877b6

Please sign in to comment.