module Twingly
  class URL
    class NullURL
      include Comparable

      def method_missing(name, *)
        error = NoMethodError.new("undefined method `#{name}'")
        raise error unless Twingly::URL.instance_methods.include?(name)

        ""
      end

      def normalized
        self
      end

      def valid?
        false
      end

      def <=>(other)
        self.to_s <=> other.to_s
      end

      def to_s
        ""
      end
    end
  end
end

require "twingly/url"

module Twingly
  class URL
    class NullURL
      include Comparable

      def method_missing(name, *)
        error = NoMethodError.new("undefined method `#{name}'")
        raise error unless Twingly::URL.instance_methods.include?(name)

        ""
      end

      def normalized
        self
      end

      def valid?
        false
      end

      def <=>(other)
        self.to_s <=> other.to_s
      end

      def to_s
        ""
      end
    end
  end
end

Fix yet another require issue
Fix yet another require issue
