Add getter and setter for buffer text

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-04-22 16:00:47 -07:00
committed by Kevin Sawicki
parent eec6518278
commit b1527a7982

View File

@@ -268,6 +268,17 @@ class EditSession
#
# Returns a {String}.
getPath: -> @buffer.getPath()
# Public: Retrieves the current buffer's text.
#
# Return a {String}.
getText: -> @buffer.getText()
# Public: Set the current buffer's text content.
#
# Return a {String}.
setText: (text) -> @buffer.setText(text)
# Public: Retrieves the current buffer.
#
# Returns a {String}.