class Twingly::URL::NullURL
Public Instance Methods
<=>(other)
click to toggle source
# File lib/twingly/url/null_url.rb, line 23 def <=>(other) self.to_s <=> other.to_s end
eql?(other)
click to toggle source
# File lib/twingly/url/null_url.rb, line 27 def eql?(other) return false unless other.is_a?(self.class) self.hash == other.hash end
hash()
click to toggle source
# File lib/twingly/url/null_url.rb, line 33 def hash self.to_s.hash end
method_missing(name, *)
click to toggle source
# File lib/twingly/url/null_url.rb, line 8 def method_missing(name, *) error = NoMethodError.new("undefined method `#{name}'") raise error unless Twingly::URL.instance_methods.include?(name) "" end
normalized()
click to toggle source
# File lib/twingly/url/null_url.rb, line 15 def normalized self end
to_s()
click to toggle source
# File lib/twingly/url/null_url.rb, line 37 def to_s "" end
valid?()
click to toggle source
# File lib/twingly/url/null_url.rb, line 19 def valid? false end