Method: IRB.unset_measure_callback
- Defined in:
- lib/irb/init.rb
.unset_measure_callback(type = nil) ⇒ Object
236 237 238 239 240 241 242 243 244 |
# File 'lib/irb/init.rb', line 236 def IRB.unset_measure_callback(type = nil) if type.nil? IRB.conf[:MEASURE_CALLBACKS].clear else type_sym = type.upcase.to_sym IRB.conf[:MEASURE_CALLBACKS].reject!{ |t, | t == type_sym } end IRB.conf[:MEASURE] = nil if IRB.conf[:MEASURE_CALLBACKS].empty? end |