Module: Sevgi::Graphics::Element::Ident Private
- Included in:
- Sevgi::Graphics::Element
- Defined in:
- lib/sevgi/graphics/element.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
SVG element method-name normalization.
Instance Method Summary collapse
-
#id(given) ⇒ Symbol
private
Normalizes a Ruby method name into an SVG element id.
Instance Method Details
#id(given) ⇒ Symbol
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.
Normalizes a Ruby method name into an SVG element id.
50 |
# File 'lib/sevgi/graphics/element.rb', line 50 def id(given) = (@id ||= {})[given] ||= given.to_s.tr("_", "-").to_sym |