class Util

Public Class Methods

detect_integer_id(sentense) click to toggle source
# File lib/rspec/autoswagger/util.rb, line 6
def self.detect_integer_id(sentense)
  sentense.match(/^(\d+)$/)
end
detect_uuid(sentense) click to toggle source
# File lib/rspec/autoswagger/util.rb, line 2
def self.detect_uuid(sentense)
  sentense.match(/^([a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]++-[a-zA-Z0-9]+-[a-zA-Z0-9]+)$/)
end