folds.rb 463 B

1234567891011121314151617181920212223
  1. class Car < Vehicle
  2. # <- fold_begin.class
  3. # ^ fold_new_position.class
  4. def init(id)
  5. # <- fold_begin.method
  6. # ^ fold_new_position.method
  7. {
  8. # <- fold_begin.hash
  9. # ^ fold_new_position.hash
  10. a: [
  11. #^ fold_begin.vector
  12. # ^ fold_new_position.vector
  13. 1,
  14. 2,
  15. 3
  16. ]
  17. # <- fold_end.vector
  18. }
  19. # <- fold_end.hash
  20. end
  21. # <- fold_end.method
  22. end
  23. # <- fold_end.class