Method: AppMap::Event::MethodEvent.display_string
- Defined in:
- lib/appmap/event.rb
.display_string(value) ⇒ Object
Gets a display string for a value. This is not meant to be a machine deserializable value.
31 32 33 34 35 36 37 |
# File 'lib/appmap/event.rb', line 31 def display_string(value) return nil unless value value_string = custom_display_string(value) || default_display_string(value) (value_string||'')[0...LIMIT].encode('utf-8', invalid: :replace, undef: :replace, replace: '_') end |