Skip to content

Commit

Permalink
Convenient non-abbreviated methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 18, 2015
1 parent 61c780a commit 869358f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lib/build/files/path/filesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,23 @@ def directory?
File.directory? self
end

def mtime
def modified_time
File.mtime self
end

def mkpath
alias mtime modified_time

def create
FileUtils.mkpath self
end

def rmpath
alias mkpath create

def delete
FileUtils.rm_rf self
end

alias rmpath delete
end
end
end
2 changes: 1 addition & 1 deletion lib/build/files/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

module Build
module Files
VERSION = "0.3.0"
VERSION = "0.3.1"
end
end

0 comments on commit 869358f

Please sign in to comment.