Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def key=(key)
# Custom attribute writer method with validation
# @param [Object] value Value to be assigned
def value=(value)
if !value.nil? && value.to_s.length > -1
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to -1.'
if !value.nil? && value.to_s.length < -1
fail ArgumentError, 'invalid value for "value", the character length must be bigger than -1.'
end

@value = value
Expand Down