Implement IO.read

This commit is contained in:
Paul Woolcock
2015-01-04 19:54:28 -05:00
parent c0043e78d4
commit 7ecff2d79f
2 changed files with 27 additions and 0 deletions
+5
View File
@@ -78,4 +78,9 @@ class IO {
IO.writeString_(obj.toString)
return obj
}
static read(prompt) {
IO.write(prompt)
return IO.read
}
}