New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

io-line.rb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-line.rb

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

About

io-line.rb is an IO library that can reuse one or more lines of output.
The implementation uses the io-console library from Ruby's stdlib.

Examples

One line

The following example counts from 1 up to 100. The number from the previous iteration is replaced with a number from the current iteration, and the same line is reused until the iteration is completed. It is possible to end the current line, and move onto the next line with the IO::Line#end method:

require "io/line"
line = IO::Line.new($stdout)
1.upto(100) do |number|
 line.rewind.print(number)
 sleep 0.1
end
line.end

Documentation

A complete API reference is available at 0x1eef.github.io/x/io-line.rb

Install

io-line.rb can be installed via rubygems.org:

gem install io-line.rb

Sources

License

BSD Zero Clause
See LICENSE

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc