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
:warning: :construction: 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
- File Processing
- Exercises
Contributing
- Please open an issue for typos/bugs/suggestions/etc
- Even for pull requests, open an issue for discussion before submitting PRs
- or gitter group chat for discussion
- Share the repo with friends/colleagues, on social media, etc to help reach other learners
- In case you need to reach me, use gitter private chat
- or mail me at
echo '[email protected]' | tr 'a-z' 'n-za-m'
- or mail me at
Acknowledgements
- ruby-lang documentation - manuals, tutorials and references
- /r/ruby/ - helpful forum for beginners and experienced programmers alike
- stackoverflow - for getting answers to pertinent questions
- Ruby Tricks, Idiomatic Ruby, Refactorings and Best Practices
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License