/tools/Rake/string.rb
http://github.com/agross/netopenspace · Ruby · 21 lines · 17 code · 4 blank · 0 comment · 0 complexity · 1e47a74a7996afece5cb1df91bc47ebf MD5 · raw file
- class String
- def escape
- "\"#{self.to_s}\""
- end
-
- def in(dir)
- File.join(dir, self)
- end
-
- def name()
- File.basename(self)
- end
-
- def dirname()
- File.dirname(self)
- end
-
- def to_absolute()
- File.expand_path(self)
- end
- end