Sha256: fb88a0eb28d7dc333014b17603adbf103064da90e6cd59b663807c37195b046c

Contents?: true

Size: 1.29 KB

Versions: 32

Compression:

Stored size: 1.29 KB

Contents

# IO.console

Add console capabilities to IO instances.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'io-console'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install io-console

## Usage

```ruby
require 'io/console'

IO.console      -> #<File:/dev/tty>
IO.console(sym, *args)
```

Returns a File instance opened console.

If `sym` is given, it will be sent to the opened console with `args` and the result will be returned instead of the console IO itself.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/io-console.

## License

The gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).

Version data entries

32 entries across 31 versions & 9 rubygems

Version Path
tailscale_middleware-0.0.3 vendor/cache/ruby/3.4.0/gems/io-console-0.8.0/README.md
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/io-console-0.7.2/README.md
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/io-console-0.7.2/README.md
io-console-0.8.0 README.md
io-console-0.8.0-java README.md
io-console-0.8.0.beta1 README.md
io-console-0.8.0.beta1-java README.md
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md
rails-rfc6570-3.2.0 vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md
brakeman-6.2.1 bundle/ruby/3.1.0/gems/io-console-0.7.2/README.md
brakeman-6.2.0 bundle/ruby/3.1.0/gems/io-console-0.7.2/README.md
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/io-console-0.7.2/README.md
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md
io-console-0.7.2 README.md
io-console-0.7.2-java README.md
io-console-0.7.1 README.md
io-console-0.7.1-java README.md
io-console-0.7.0 README.md
io-console-0.7.0-java README.md