class Addressable::URI
def host=(new_host)
Experimental RBS support (using type sampling data from the type_fusion
project).
def host=: (String new_host) -> untyped
This signature was generated using 6 samples from 1 application.
-
new_host
(String, #to_str
) -- The new host component.
def host=(new_host) if new_host && !new_host.respond_to?(:to_str) raise TypeError, "Can't convert #{new_host.class} into String." end @host = new_host ? new_host.to_str : nil # Reset dependent values @authority = nil @normalized_host = nil remove_composite_values # Ensure we haven't created an invalid URI validate() end