Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 406 Bytes

File metadata and controls

7 lines (4 loc) · 406 Bytes

PROJECT: SUB STRINGS

Introduction

This is a project based on the odin project where i take a string and a array with substrings and output a hash linsting each substring as key and how many times it was found as a value. In this exercise i learn about the #scan method that iterates over a string matching the pattern.

  • Ruby version 3.1.1