@@ -53,7 +53,7 @@ class Mash < Hash
53
53
# @param constructor<Object>
54
54
# The default value for the mash. Defaults to an empty hash.
55
55
#
56
- # @details [Alternatives]
56
+ # [Alternatives]
57
57
# If constructor is a Hash, a new mash will be created based on the keys of
58
58
# the hash and no default value will be set.
59
59
def initialize ( constructor = { } )
@@ -81,7 +81,7 @@ def initialize_copy(orig)
81
81
82
82
# @param key<Object> The default value for the mash. Defaults to nil.
83
83
#
84
- # @details [Alternatives]
84
+ # [Alternatives]
85
85
# If key is a Symbol and it is a key in the mash, then the default value will
86
86
# be set to the value matching the key.
87
87
def default ( key = nil )
@@ -130,14 +130,14 @@ def key?(key)
130
130
alias_method :member? , :key?
131
131
132
132
# @param key<Object> The key to fetch. This will be run through convert_key.
133
- # @param * extras<Array> Default value.
133
+ # @param extras<Array> Default value.
134
134
#
135
135
# @return [Object] The value at key or the default value.
136
136
def fetch ( key , *extras )
137
137
super ( convert_key ( key ) , *extras )
138
138
end
139
139
140
- # @param * indices<Array>
140
+ # @param indices<Array>
141
141
# The keys to retrieve values for. These will be run through +convert_key+.
142
142
#
143
143
# @return [Array] The values at each of the provided keys
@@ -158,8 +158,6 @@ def delete(key)
158
158
super ( convert_key ( key ) )
159
159
end
160
160
161
- # @param *rejected<Array[(String, Symbol)] The mash keys to exclude.
162
- #
163
161
# @return [Mash] A new mash without the selected keys.
164
162
#
165
163
# @example
@@ -197,10 +195,6 @@ def self.from_hash(hash)
197
195
protected
198
196
# @param key<Object> The key to convert.
199
197
#
200
- # @param [Object]
201
- # The converted key. If the key was a symbol, it will be converted to a
202
- # string.
203
- #
204
198
# @api private
205
199
def convert_key ( key )
206
200
key . kind_of? ( Symbol ) ? key . to_s : key
0 commit comments