📝 Doc save, saveAs, and getPath as public

This commit is contained in:
Kevin Sawicki
2014-03-13 09:19:51 -07:00
parent 864ab0c095
commit eba2abd5d9

View File

@@ -404,13 +404,19 @@ class Editor extends Model
else
_.multiplyString("\t", Math.floor(number))
# {Delegates to: TextBuffer.save}
# Public: Saves the editor's text buffer.
#
# See {TextBuffer::save} for more details.
save: -> @buffer.save()
# {Delegates to: TextBuffer.saveAs}
saveAs: (path) -> @buffer.saveAs(path)
# Public: Saves the editor's text buffer as the given path.
#
# See {TextBuffer::saveAs} for more details.
#
# filePath - A {String} path.
saveAs: (filePath) -> @buffer.saveAs(filePath)
# {Delegates to: TextBuffer.getPath}
# Public: Returns the {String} path of this editor's text buffer.
getPath: -> @buffer.getPath()
# Public: Returns a {String} representing the entire contents of the editor.