Method: MetaRuby::GUI::HTML::Button#html_id

Defined in:
lib/metaruby/gui/html/button.rb

#html_idString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The ID, quoted for HTML

Returns:

  • (String)


58
# File 'lib/metaruby/gui/html/button.rb', line 58

def html_id; id.gsub(/[^\w]/, '_') end