class SDL::Types::SDLUrl
Public Instance Methods
from_string(string_value)
click to toggle source
# File lib/sdl/types/sdl_url.rb, line 9 def from_string(string_value) begin @value = URI.parse string_value rescue URI::InvalidURIError throw "Invalid URI: #{string_value}" end end