-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running example #20
Labels
bug
Something isn't working
Comments
Ahh, there needs to be a: require 'stringio' |
schneems
added a commit
to schneems/unicode_plot.rb
that referenced
this issue
Jan 6, 2020
When the `stringio` library is not required then using the examples gives us this error: ``` NameError (uninitialized constant UnicodePlot::StyledPrinter::StringIO) ``` By adding this require to the top level library file we guarantee it is always loaded.
schneems
added a commit
to schneems/unicode_plot.rb
that referenced
this issue
Jan 6, 2020
When the `stringio` library is not required then using the examples gives us this error: ``` NameError (uninitialized constant UnicodePlot::StyledPrinter::StringIO) ``` By adding this require to the top level library file we guarantee it is always loaded.
First impressions with the library: This is awesome! Histogram
┌ ┐
[3.1, 3.2) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 23
[3.2, 3.3) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 14
[3.3, 3.4) ┤▇▇▇▇▇▇▇▇ 5
[3.4, 3.5) ┤▇▇▇▇▇ 3
[3.5, 3.6) ┤▇▇ 1
[3.6, 3.7) ┤▇▇▇▇▇▇▇▇ 5
[3.7, 3.8) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇ 8
[3.8, 3.9) ┤▇▇▇ 2
└ ┘
Frequency=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
IRB:
I'm guessing that
StringIO
in that context should be::StringIO
Ruby 2.7.0, latest version of this gem.
The text was updated successfully, but these errors were encountered: