StdoutOutputter
The dead simple wrapper class for the STDOUT.puts
calls. Useful during tests
when you want mock the output.
Installation
Add this line to your application's Gemfile:
gem 'stdout_outputter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install stdout_outputter
Usage
require 'stdout_outputter'
class Foo
def initialize(outputter)
@outputter = outputter
end
def bar
...
@outputter.write 'bla bla bla'
...
end
end
foo = Foo.new(StdoutOutputter::Outputter.new)
foo.bar # prints 'bla bla bla'
Versioning
See semver.org
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request