@@ -15,8 +15,8 @@ class Absolute < Relative
1515 # @parameter scheme [String] The URL scheme (e.g., "https", "http").
1616 # @parameter authority [String] The authority component (e.g., "example.com", "user@host:port").
1717 # @parameter path [String | Path] The encoded path component (defaults to "/").
18- # @parameter query [String, nil ] The query string.
19- # @parameter fragment [String, nil ] The fragment identifier.
18+ # @parameter query [String | Nil ] The query string.
19+ # @parameter fragment [String | Nil ] The fragment identifier.
2020 def initialize ( scheme , authority , path = "/" , query = nil , fragment = nil )
2121 @scheme = scheme
2222 @authority = authority
@@ -36,11 +36,11 @@ def freeze
3636 return super
3737 end
3838
39- # @attribute [String] The URL scheme.
40- attr :scheme
39+ # @attribute [String | Nil ] The URL scheme.
40+ attr_accessor :scheme
4141
42- # @attribute [String] The authority component.
43- attr :authority
42+ # @attribute [String | Nil ] The authority component.
43+ attr_accessor :authority
4444
4545 # Check if the URL has a non-empty scheme.
4646 #
@@ -122,11 +122,11 @@ def append(buffer = String.new)
122122
123123 # Create a new Absolute URL with modified components.
124124 #
125- # @parameter scheme [String, nil ] The scheme to use (nil to remove scheme).
126- # @parameter authority [String, nil ] The authority to use (nil to remove authority).
127- # @parameter path [String, nil ] The path to merge with the current path.
128- # @parameter query [String, nil ] The query string to use.
129- # @parameter fragment [String, nil ] The fragment to use.
125+ # @parameter scheme [String | Nil ] The scheme to use (nil to remove scheme).
126+ # @parameter authority [String | Nil ] The authority to use (nil to remove authority).
127+ # @parameter path [String | Nil ] The path to merge with the current path.
128+ # @parameter query [String | Nil ] The query string to use.
129+ # @parameter fragment [String | Nil ] The fragment to use.
130130 # @parameter pop [Boolean] Whether to pop the last path component before merging.
131131 # @returns [Absolute] A new Absolute URL with the modified components.
132132 #
0 commit comments