class Stype::SURI
Public Class Methods
parse(str)
click to toggle source
# File lib/stype.rb, line 7 def parse(str) str.match(/http:\/\/|https:\/\//) ? URI.parse(str) : nil end
# File lib/stype.rb, line 7 def parse(str) str.match(/http:\/\/|https:\/\//) ? URI.parse(str) : nil end