Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/infobar.rb
Instance Method Summary collapse
Instance Method Details
#infobar ⇒ Object
172 173 174 |
# File 'lib/infobar.rb', line 172 def ::.instance end |
#with_infobar(**opts, &block) ⇒ Object
176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/infobar.rb', line 176 def (**opts, &block) case when total = opts[:total].ask_and_send(:to_sym) opts[:total] = __send__(total) when opts[:total].nil? opts[:total] = size end .(**opts) block and each(&block) self end |