this is pretty crazy, and I feel really stupid asking this. But I have a basic code in Ruby and it's comprised of
- user input assigned to value
- input extracted to array by line
- iterations over each line extracting specific text and specific numbers
- if /else statements
if text includes specific words then you apply math if text includes specific words you don't apply math
- i also have a running total that i assign outside the loop and add to inside the loop
for each do |x|) and basic variable = true, or variable = input * 52/ 300
where do i start making this into class-based structure with OOP?