class

PublicSuffix::Domain

Inherits Reference / Object

Constructors

new(str : String)
Source

Instance methods

domain
Source
domain=(domain : String)
Source
labels

labels ordered from top to bottom, e.g. ["com", "google", "translate"]

Source
labels=(labels : Array(String))

labels ordered from top to bottom, e.g. ["com", "google", "translate"]

Source
subdomain
Source
subdomain=(subdomain : String | Nil)
Source
suffix
Source
suffix=(suffix : String)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source