Ruby Mega Tutorial Part 1

Опубликовано: 31 Октябрь 2025
на канале: Timothy Unkert
118
4

Check out my blog:
https://unkertmedia.com

In part 1 of my MEGA Ruby tutorial I cover the following topics:
printing using print and puts
string methods including upcase, downcase, and capitalize
escape characters
data types including Strings, Integers, Floats, TrueClass, FalseClass, NilClass, Arrays and Hashes
arithmetic in Ruby including adding, subtracting, multiplying, dividing, the modulo operator, and exponentiation
type conversion including converting from integers to strings, strings to integers, and floats to integers and strings
number methods including abs, round, ceil, and floor
bigdecimal/math and BigMath along with hypot, sin, sqrt, log, and acos
getting user input with gets.chomp
format specifiers for including variables in output
arrays including accessing different items in arrays and how print and puts handle arrays differently.

Attribution for Ruby image in thumbnail:
Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5 https://creativecommons.org/licenses/..., via Wikimedia Commons