@@ -670,7 +670,25 @@ setNonEnumerableReadOnly( Presentation.prototype, 'lastFragment', function lastF
670670* @returns {void }
671671*
672672* @example
673- * // TODO
673+ * var debug = require( '@stdlib/streams/node/debug-sink' );
674+ *
675+ * // Create a new REPL:
676+ * var repl = new REPL({
677+ * 'output': debug()
678+ * });
679+ *
680+ * // Create a new REPL presentation:
681+ * var pres = new Presentation( repl );
682+ *
683+ * // ...
684+ *
685+ * // Run any code on the current slide:
686+ * pres.run( done );
687+ *
688+ * function done() {
689+ * // Close the REPL:
690+ * repl.close();
691+ * }
674692*/
675693setNonEnumerableReadOnly ( Presentation . prototype , 'run' , function run ( clbk ) {
676694 var self ;
@@ -728,7 +746,29 @@ setNonEnumerableReadOnly( Presentation.prototype, 'run', function run( clbk ) {
728746* @returns {Presentation } presentation instance
729747*
730748* @example
731- * // TODO
749+ * var debug = require( '@stdlib/streams/node/debug-sink' );
750+ *
751+ * // Create a new REPL:
752+ * var repl = new REPL({
753+ * 'output': debug()
754+ * });
755+ *
756+ * // Create a new REPL presentation:
757+ * var pres = new Presentation( repl );
758+ *
759+ * // ...
760+ *
761+ * // Load a presentation from a file:
762+ * try {
763+ * pres.load( './path/to/presentation/file.txt' );
764+ * } catch ( err ) {
765+ * console.error( err.message );
766+ * }
767+ *
768+ * // ...
769+ *
770+ * // Close the REPL:
771+ * repl.close();
732772*/
733773setNonEnumerableReadOnly ( Presentation . prototype , 'load' , function load ( file ) {
734774 file = readFile ( file , {
@@ -767,7 +807,25 @@ setNonEnumerableReadOnly( Presentation.prototype, 'load', function load( file )
767807* @returns {Presentation } presentation instance
768808*
769809* @example
770- * // TODO
810+ * var debug = require( '@stdlib/streams/node/debug-sink' );
811+ *
812+ * // Create a new REPL:
813+ * var repl = new REPL({
814+ * 'output': debug()
815+ * });
816+ *
817+ * // Create a new REPL presentation:
818+ * var pres = new Presentation( repl );
819+ *
820+ * // ...
821+ *
822+ * // Reload a presentation:
823+ * pres.reload();
824+ *
825+ * // ...
826+ *
827+ * // Close the REPL:
828+ * repl.close();
771829*/
772830setNonEnumerableReadOnly ( Presentation . prototype , 'reload' , function reload ( ) {
773831 var currentSlide = this . currentSlide ;
@@ -792,7 +850,25 @@ setNonEnumerableReadOnly( Presentation.prototype, 'reload', function reload() {
792850* @returns {(string|null) } rendered slide
793851*
794852* @example
795- * // TODO
853+ * var debug = require( '@stdlib/streams/node/debug-sink' );
854+ *
855+ * // Create a new REPL:
856+ * var repl = new REPL({
857+ * 'output': debug()
858+ * });
859+ *
860+ * // Create a new REPL presentation:
861+ * var pres = new Presentation( repl );
862+ *
863+ * // ...
864+ *
865+ * // Render the current presentation slide:
866+ * var slide = pres.render();
867+ *
868+ * // ...
869+ *
870+ * // Close the REPL:
871+ * repl.close();
796872*/
797873setNonEnumerableReadOnly ( Presentation . prototype , 'render' , function render ( ) {
798874 var paddingBottom ;
@@ -882,7 +958,25 @@ setNonEnumerableReadOnly( Presentation.prototype, 'render', function render() {
882958* @returns {Presentation } presentation instance
883959*
884960* @example
885- * // TODO
961+ * var debug = require( '@stdlib/streams/node/debug-sink' );
962+ *
963+ * // Create a new REPL:
964+ * var repl = new REPL({
965+ * 'output': debug()
966+ * });
967+ *
968+ * // Create a new REPL presentation:
969+ * var pres = new Presentation( repl );
970+ *
971+ * // ...
972+ *
973+ * // Show a presentation slide:
974+ * pres.show();
975+ *
976+ * // ...
977+ *
978+ * // Close the REPL:
979+ * repl.close();
886980*/
887981setNonEnumerableReadOnly ( Presentation . prototype , 'show' , function show ( ) {
888982 var str = this . render ( ) ;
0 commit comments