Method: Tk::BWidget::DynamicHelp.cget_strict
- Defined in:
- lib/tkextlib/bwidget/dynamichelp.rb
.cget_strict(slot) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/tkextlib/bwidget/dynamichelp.rb', line 38 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 |