From f2434a4c5a348deb3a131353ae57e0c91ef4904b Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Fri, 2 Jul 2021 20:47:04 +0900 Subject: [PATCH] add MultiSelectList#inspect --- src/mechanize/form/multi_select_list.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mechanize/form/multi_select_list.cr b/src/mechanize/form/multi_select_list.cr index 528f2d8..ec3526e 100644 --- a/src/mechanize/form/multi_select_list.cr +++ b/src/mechanize/form/multi_select_list.cr @@ -52,10 +52,10 @@ class MechanizeCr::FormContent::MultiSelectList values ? values.map { |v| [name, v] } : nil end - #def inspect # :nodoc: - # "[%s:0x%x type: %s name: %s value: %s]" % [ - # self.class.name.sub(/MechanizeCr::FormContent::/, "").downcase, - # object_id, type, name, value - # ] - #end + def inspect # :nodoc: + "[%s:0x%x type: %s name: %s values: [%s]]" % [ + self.class.name.sub(/MechanizeCr::FormContent::/, "").downcase, + object_id, type, name, values.join(',') + ] + end end