MCPcopy Create free account
hub / github.com/existentialmutt/lt-ruby / flush

Method flush

rb-src/lt_client.rb:185–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 alias_method :<<, :write
184
185 def flush
186 client.send_response(client.currentId, "editor.eval.ruby.print", {"msg" => @cur, "file" => File.basename(FileUtils.pwd)})
187 @cur = ""
188 end
189
190 def self.safe_print(text)
191 $stdout.write(text)

Callers 2

writeMethod · 0.95
safe_printMethod · 0.80

Calls 1

send_responseMethod · 0.80

Tested by

no test coverage detected