mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-29 02:17:42 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
10 lines
829 B
Markdown
10 lines
829 B
Markdown
# Scope
|
|
|
|
Scope refers to the visibility and accessibility of variables within different parts of a program. It determines where a variable can be accessed and used. Understanding scope is crucial for avoiding naming conflicts and ensuring that data is accessed and modified correctly within different parts of your Ruby code.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Scope](https://docs.ruby-lang.org/en/master/syntax/methods_rdoc.html#label-Scope)
|
|
- [@article@Variable Scope and Access in Ruby: The Important Parts](https://ethanweiner.medium.com/variable-scope-and-access-in-ruby-the-important-parts-dc2d146977b3)
|
|
- [@article@Method Definition and Local Variable Scope](https://launchschool.com/books/ruby/read/methods)
|
|
- [@video@Methods & Variable Scope in Ruby](https://www.youtube.com/watch?v=rzZK79C6nSI) |