Method: BitClust::NameUtils.encodename_url
- Defined in:
- lib/bitclust/nameutils.rb
.encodename_url(str) ⇒ Object
string -> case-sensitive ID
211 212 213 |
# File 'lib/bitclust/nameutils.rb', line 211 def encodename_url(str) str.gsub(/[^A-Za-z0-9_]/n) {|ch| sprintf('=%02x', ch[0].ord) } end |