``` rails [5.2.3] (r5test)$ FinalRedirectUrl.is_valid_url? "a.com" => nil ``` In [the given scope](https://github.com/indyarocks/final_redirect_url/blob/6b672e7b446c5fbd48c74eca7de8e6f45a20e495/lib/final_redirect_url.rb#L22) `private` applies to instance methods. You will have to do: ``` class << self private def is_valid_url() end # ... end ``` Or call [`private_class_method`](https://ruby-doc.org/core-2.6.1/Module.html#method-i-private_class_method).