The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
章節目錄
1-1Content list
1-2About
1-3Chapter 1: Getting started with Ruby Language
1-4Section 1.1: Hello World
1-5Section 1.2: Hello World as a Self-Executable File—using Shebang (Unix-like operating systems only)
1-6Section 1.3: Hello World from IRB
1-7Section 1.4: Hello World without source files
1-8Section 1.5: Hello World with tk
1-9Section 1.6: My First Method
1-10Chapter 2: Casting (type conversion)
1-11Section 2.1: Casting to a Float
1-12Section 2.2: Casting to a String
1-13Section 2.3: Casting to an Integer
1-14Section 2.4: Floats and Integers
1-15Chapter 3: Operators
1-16Section 3.1: Operator Precedence and Methods
1-17Section 3.2: Case equality operator (===)
1-18Section 3.3: Safe Navigation Operator
1-19Section 3.4: Assignment Operators
1-20Section 3.5: Comparison Operators
1-21Chapter 4: Variable Scope and Visibility
1-22Section 4.1: Class Variables
1-23Section 4.2: Local Variables
1-24Section 4.3: Global Variables
1-25Section 4.4: Instance Variables
1-26Chapter 5: Environment Variables
1-27Section 5.1: Sample to get user profile path
1-28Chapter 6: Constants
1-29Section 6.1: Define a constant
1-30Section 6.2: Modify a Constant
1-31Section 6.3: Constants cannot be defined in methods
1-32Section 6.4: Define and change constants in a class
1-33Chapter 7: Special Constants in Ruby
1-34Section 7.1: __FILE__
1-35Section 7.2: __dir__
1-36Section 7.3: $PROGRAM_NAME or $0
1-37Section 7.4: $$
1-38Section 7.5: $1, $2, etc
1-39Section 7.6: ARGV or $*
1-40Section 7.7: STDIN
1-41Section 7.8: STDOUT
1-42Section 7.9: STDERR
1-43Section 7.10: $stderr
1-44Section 7.11: $stdout
1-45Section 7.12: $stdin
1-46Section 7.13: ENV
1-47Chapter 8: Comments
1-48Section 8.1: Single & Multiple line comments
1-49Chapter 9: Arrays
1-50Section 9.1: Create Array of Strings
1-51Section 9.2: Create Array with Array::new
1-52Section 9.3: Create Array of Symbols
1-53Section 9.4: Manipulating Array Elements
1-54Section 9.5: Accessing elements
1-55Section 9.6: Creating an Array with the literal constructor [ ]
1-56Section 9.7: Decomposition
1-57Section 9.8: Arrays union, intersection and dierence
1-58Section 9.9: Remove all nil elements from an array with #compact
1-59Section 9.10: Get all combinations / permutations of an array
1-60Section 9.11: Inject, reduce
1-61Section 9.12: Filtering arrays
1-62Section 9.13: #map
1-63Section 9.14: Arrays and the splat (*) operator
1-64Section 9.15: Two-dimensional array
1-65Section 9.16: Turn multi-dimensional array into a one-dimensional (flattened) array
1-66Section 9.17: Get unique array elements
1-67Section 9.18: Create Array of numbers
1-68Section 9.19: Create an Array of consecutive numbers or letters
1-69Section 9.20: Cast to Array from any object
1-70Chapter 10: Multidimensional Arrays
1-71Section 10.1: Initializing a 2D array
1-72Section 10.2: Initializing a 3D array
1-73Section 10.3: Accessing a nested array
1-74Section 10.4: Array flattening
1-75Chapter 11: Strings
1-76Section 11.1: Dierence between single-quoted and double-quoted String literals
1-77Section 11.2: Creating a String
1-78Section 11.3: Case manipulation
1-79Section 11.4: String concatenation
1-80Section 11.5: Positioning strings
1-81Section 11.6: Splitting a String
1-82Section 11.7: String starts with
1-83Section 11.8: Joining Strings
1-84Section 11.9: String interpolation
1-85Section 11.10: String ends with
1-86Section 11.11: Formatted strings
1-87Section 11.12: String Substitution
1-88Section 11.13: Multiline strings
1-89Section 11.14: String character replacements
1-90Section 11.15: Understanding the data in a string
1-91Chapter 12: DateTime
1-92Section 12.1: DateTime from string
1-93Section 12.2: New
1-94Section 12.3: Add/subtract days to DateTime
1-95Chapter 13: Time
1-96Section 13.1: How to use the strftime method
1-97Section 13.2: Creating time objects
1-98Chapter 14: Numbers
1-99Section 14.1: Converting a String to Integer
1-100Section 14.2: Creating an Integer
1-101Section 14.3: Rounding Numbers
1-102Section 14.4: Even and Odd Numbers
1-103Section 14.5: Rational Numbers
1-104Section 14.6: Complex Numbers
1-105Section 14.7: Converting a number to a string