Class: CmisServer::Id

Inherits:
String
  • Object
show all
Defined in:
lib/cmis_server/id.rb

Instance Method Summary collapse

Instance Method Details

#path_sanitizeObject



4
5
6
# File 'lib/cmis_server/id.rb', line 4

def path_sanitize
  self.gsub(/[^a-z0-9_-]/i, '_')
end

#to_method_nameObject



8
9
10
# File 'lib/cmis_server/id.rb', line 8

def to_method_name
  self.gsub(/[^0-9a-z]/i, '_').underscore
end