Method: Rex::Java::Serialization::Model::NewClassDesc#to_s
- Defined in:
- lib/rex/java/serialization/model/new_class_desc.rb
#to_s ⇒ String
Creates a print-friendly string representation
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/rex/java/serialization/model/new_class_desc.rb', line 91 def to_s str = "#{class_name}, [ " fields_str = [] fields.each do |field| fields_str << field.to_s end str << "#{fields_str.join(', ')} ]" case super_class.description when NewClassDesc str << ", @super_class: #{super_class.description.class_name.to_s}" when Reference str << ", @super_class: #{super_class.description.to_s}" end str end |