Class: Progress::WithProgress
- Inherits:
-
Object
- Object
- Progress::WithProgress
- Defined in:
- lib/progress/with_progress.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(object, title) ⇒ WithProgress
constructor
A new instance of WithProgress.
- #method_missing(method, *args, &block) ⇒ Object
- #with_progress(title) ⇒ Object
Constructor Details
#initialize(object, title) ⇒ WithProgress
Returns a new instance of WithProgress.
6 7 8 9 |
# File 'lib/progress/with_progress.rb', line 6 def initialize(object, title) @object = Progress::Enhancer.new(object) @title = title end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
5 6 7 |
# File 'lib/progress/with_progress.rb', line 5 def object @object end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/progress/with_progress.rb', line 5 def title @title end |
Instance Method Details
#with_progress(title) ⇒ Object
11 12 13 |
# File 'lib/progress/with_progress.rb', line 11 def with_progress(title) self end |