module Import_Module
kk
Constants
- IMPORT_MODULE_Version
Public Class Methods
name(meth, s, prefix = true)
click to toggle source
# File lib/algebra/import-module.rb, line 90 def self.name(meth, s, prefix = true) name = s.to_s.gsub(/_|::|[^\w]/){|c| "_%03d" % [c[0].ord]} if meth =~ /^[_a-zA-Z][_\w]*$/ meth = "__" + meth else meth = "_op" + meth.to_s.gsub(/[^\w]/){|c| "%03d" % [c[0].ord]} + "__" end (prefix ? "__IMPORT_MODULE_PREFIX_" : "") + name + meth end