Module: Wx::Extensions::EasyMenuName

Included in:
EasyMenu, EasyMenuBar
Defined in:
lib/wx_sugar/menu.rb

Instance Method Summary collapse

Instance Method Details

#clean_name(str) ⇒ Object



3
4
5
# File 'lib/wx_sugar/menu.rb', line 3

def clean_name(str)
  str.gsub(/\&/, '')
end

#internal_name(str) ⇒ Object



7
8
9
# File 'lib/wx_sugar/menu.rb', line 7

def internal_name(str)
   str.gsub(/\s+/, "_").gsub(/\W/, "").downcase
end