Method: Semi::Variables::Url.validate
- Defined in:
- lib/semi/variables/url.rb
.validate(value) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/semi/variables/url.rb', line 12 def self.validate(value) if ['String', 'Semi::Variables::Url'].include? value.class.to_s if @@url_re.match(value) return true end end false end |