class Kommando::Stdin
Public Class Methods
new()
click to toggle source
# File lib/kommando/stdin.rb, line 2 def initialize @buffer = [] end
Public Instance Methods
<<(string)
click to toggle source
# File lib/kommando/stdin.rb, line 10 def <<(string) @buffer << string end
getc()
click to toggle source
# File lib/kommando/stdin.rb, line 6 def getc @buffer.shift end
write(string)
click to toggle source
# File lib/kommando/stdin.rb, line 14 def write(string) self << string end
writeln(string)
click to toggle source
# File lib/kommando/stdin.rb, line 18 def writeln(string) self << string << "\r" end