Method: BitClust::NameUtils.decodename_fs

Defined in:
lib/bitclust/nameutils.rb

.decodename_fs(str) ⇒ Object



244
245
246
247
248
# File 'lib/bitclust/nameutils.rb', line 244

def decodename_fs(str)
  str.gsub(/=[\da-h]{2}|-[a-z]/ni) {|s|
    (/\A-/ =~ s) ? s[1,1].upcase : s[1,2].hex.chr
  }
end