Ruby Scripting
- Introduction to Ruby, syntax, issuing external commands, array/string methods, regular expressions, file processing and more…
- Suitable for those already familiar with programming concepts like variables, printing, control structures, looping, arrays, etc
- If you are new to programming, check out Think Ruby, a translation of Think Python by Allen Downey that I’m working on
- This repo is also suitable as a material reference for a one/two day workshop
- For more related resources, visit scripting course and my programming blog https://learnbyexample.github.io
Chapters
⚠️ 🚧 Work in progress, stay tuned…
- Introduction
- Numbers and Strings
- Getting User input
- Methods
- Control Structures
- Executing external commands
- Arrays
- Hashes
- Set
- String Methods
- Regular Expressions
- Why is it needed?, Syntax and operators, Anchors, Alternation and Grouping, Escaping metacharacters, Dot metacharacter and Quantifiers, match, scan and globals, Character class, Groupings and backreferences, Lookarounds, Modifiers, Unicode, Miscellaneous, Gotchas, Further Reading
- File Processing
- Exercises
Contributing
- Please open an issue for typos/bugs/suggestions/etc
- Please open an issue for discussion before submitting PRs
- Share the repo with friends/colleagues, on social media, etc to help reach other learners
- In case you need to reach me, mail me at
echo '[email protected]' | tr 'a-z' 'n-za-m'
or send a DM via twitter
ebook
- Read as ebook on gitbook
- All
legacy.gitbook.com
links are now automatically redirected to gitbook.com
, so there’s no longer an option to download ebooks for offline reading
Acknowledgements
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License