add MultiSelectList#inspect

master
Kanezoh 2021-07-02 20:47:04 +09:00
parent 8cfd44473d
commit f2434a4c5a
1 changed files with 6 additions and 6 deletions

View File

@ -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