class Pretty::Diff
- Pretty::Diff
 - Reference
 - Object
 
Included Modules
- Enumerable(Pretty::Diff::Entry)
 - Iterable(Pretty::Diff::Entry)
 
Defined in:
pretty/diff.crConstructors
- .diff(a, b, value_truncate : Int32 = 30) : Diff
 - .new(entries : Array(Entry))
 - .new(e : Entry) : Diff
 - .new(array : Array(Diff)) : Diff
 
Instance Method Summary
- #each(*args, **options)
 - #each(*args, **options, &)
 - #entries : Array(Pretty::Diff::Entry)
 - #output_size=(output_size : Int32 | Nil)
 - #output_size? : Int32 | Nil
 - 
        #to_s(io : IO)
        
          
Appends a short String representation of this object which includes its class name and its object address.
 
Constructor Detail
Instance Method Detail
        
        def to_s(io : IO)
        #
      
      
        
              Description copied from class Reference
            
          
          Appends a short String representation of this object which includes its class name and its object address.
class Person
  def initialize(@name : String, @age : Int32)
  end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>