Method: Tk::BWidget::DynamicHelp.cget_strict
- Defined in:
- ext/lib/tkextlib/bwidget/dynamichelp.rb
.cget_strict(slot) ⇒ Object
37 38 39 40 41 42 43 |
# File 'ext/lib/tkextlib/bwidget/dynamichelp.rb', line 37 def self.cget_strict(slot) slot = slot.to_s info = {} self.current_configinfo.each{|k,v| info[k.to_s] = v if k.to_s == slot} fail RuntimeError, "unknown option \"-#{slot}\"" if info.empty? info.values[0] end |