bufToList method

List<String> bufToList(
  1. StringBuffer buf
)

Return iterable List from StringBuffer. Also in tools.

Implementation

List<String> bufToList(StringBuffer buf) {
  List<String> _l = [];
  String _s = buf.toString();
  _l.addAll(_s.split('\n'));
  return _l;
}