Module: TK
- Defined in:
- lib/wiki_lyrics/gui/gui-tk.rb
Defined Under Namespace
Classes: BaseDialog, Button, CheckBox, FixPagesDialog, Label, PluginsManagerDialog, SearchLyricsDialog, ShowLyricsDialog, SpinBox, SubmitAlbumDialog, SubmitSongDialog, TextArea, TextEdit, UploadCoverDialog, WikiPluginDialog
Class Method Summary
collapse
Class Method Details
.empty_string?(text) ⇒ Boolean
26
27
28
|
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 26
def TK.empty_string?( text )
return text ? (text.empty? ? true : text.strip().empty?) : true
end
|
.proc_args(args, defined = nil) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 30
def TK.proc_args( args, defined=nil )
ret = {}
args.each() { |hash| hash.each() { |k,v| ret[k] = v } }
defined.each() { |k,v| ret[k] = v } if defined
return ret
end
|