Skip to content
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

Feature: Add in prefix and suffix modifiers #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TRex22
Copy link

@TRex22 TRex22 commented Sep 17, 2019

What does this PR do?

@@ -6,9 +6,10 @@ class ProgressBar
Error = Class.new(StandardError)
ArgumentError = Class.new(Error)

attr_accessor :count, :max, :meters
attr_accessor :count, :max, :meters, :prefix, :suffix
attr_reader :terminal_width # Useful for prefix and suffix changes
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt that this value can be useful if someone is now adding prefixes and suffixes they may need this value in outside calculations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant