Module: StringToUrlNotFound

Defined in:
lib/papermill/extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_urlObject



61
62
63
# File 'lib/papermill/extensions.rb', line 61

def to_url
  gsub(/[^a-zA-Z0-9]/, "-").gsub(/-+/, "-").gsub(/^-|-$/, "").downcase
end