Module: MiniSuffix
- Extended by:
- FFI::Library
- Defined in:
- lib/mini_suffix.rb,
lib/mini_suffix/version.rb
Constant Summary collapse
- VERSION =
"0.3.3"
- @@context =
psl_builtin
Class Method Summary collapse
-
.domain(hostname) ⇒ String
Extracts the shortest private suffix part of the hostname.
Class Method Details
.domain(hostname) ⇒ String
Extracts the shortest private suffix part of the hostname
25 26 27 |
# File 'lib/mini_suffix.rb', line 25 def self.domain(hostname) self.psl_registrable_domain(@@context, hostname) end |