Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/project_creator.rb
Overview
Implements methods for String class.
Instance Method Summary collapse
Instance Method Details
#to_file(path = '.') ⇒ Object
24 25 26 |
# File 'lib/project_creator.rb', line 24 def to_file(path = '.') File.open(path, 'w+') { |f| f.write(self) } end |