Skip to content

lillysilly3/ruby-adventures

Repository files navigation

Ruby Adventures

A collection of exercises and mini projects built while learning Ruby fundamentals. Each file explores different concepts from basic syntax to object-oriented programming.

Projects

File Description
calculator.rb CLI calculator using lambda functions
bmi_calculator.rb BMI calculator with category ranges
company_email_generator.rb Generates work emails from name and company input
exam_letter_grading.rb Converts grade points to letter grades using case statements
fibonacci_numbers.rb Prints Fibonacci sequence up to a given number
letter_frequency.rb Counts letter frequency in a given text
palindrome_checker.rb Checks if a word is a palindrome — includes both easy and recursive solutions
search_in_file.rb Searches for a keyword across .txt files in the current directory

Syntax Notes

syntax.rb and syntax_intro.rb are personal learning notes — not meant to run, just reference.

File Description
syntax_intro.rb Variables, strings, arrays, methods, conditionals, OOP basics
syntax.rb Deep dive into Ruby syntax — operators, hashes, loops, lambdas, modules, exceptions, OOP

Concepts Covered

  • Variables, strings, arrays, hashes
  • Conditionals, loops, case statements
  • Methods, lambdas, blocks, yield
  • Object-oriented programming — classes, inheritance, encapsulation, polymorphism
  • Modules — include, extend, prepend
  • File and directory manipulation
  • Exception handling
  • Recursion

Getting Started

Requirements: Ruby 2.7+

git clone https://github.com/YOUR_USERNAME/ruby_adventures
cd ruby_adventures
ruby calculator.rb

Acknowledgments

This project was built following the Ruby tutorial by Best Tutorials on YouTube.

About

Learning about ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages