Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Ruby Pocket Reference
SPECIAL OFFER: Upgrade this ebook with O’Reilly
1. Ruby Pocket Reference
1.1. Conventions Used in This Book
1.2. Comments and Questions
1.3. Acknowledgments
1.4. Running Ruby
1.4.1. Running the Ruby Interpreter
1.4.2. Using a Shebang Line on Unix/Linux
1.4.3. Associating File Types on Windows
1.5. Reserved Words
1.6. Operators
1.7. Comments
1.8. Numbers
1.9. Variables
1.9.1. Local Variables
1.9.2. Instance Variables
1.9.3. Class Variables
1.9.4. Global Variables
1.9.5. Constants
1.9.6. Parallel Assignment of Variables
1.10. Symbols
1.11. Predefined Variables
1.12. Pseudovariables
1.13. Global Constants
1.14. Ranges
1.15. Methods
1.15.1. Parentheses
1.15.2. Return Values
1.15.3. Method Name Conventions
1.15.4. Default Arguments
1.15.5. Variable Arguments
1.15.6. Aliasing Methods
1.15.7. Blocks
1.15.7.1. The yield statement
1.15.8. Procs
1.16. Conditional Statements
1.16.1. The if Statement
1.16.1.1. Negation
1.16.1.2. Multiple tests
1.16.1.3. Statement modifier for if
1.16.1.4. The else statement
1.16.1.5. The elsif statement
1.16.2. The unless Statement
1.16.2.1. Statement modifier for unless
1.16.3. The while Statement
1.16.3.1. Statement modifier for while
1.16.4. The until Statement
1.16.4.1. Statement modifier for until
1.16.5. The case Statement
1.16.6. The for Loop
1.16.7. The Ternary Operator
1.16.8. Executing Code Before or After a Program
1.17. Classes
1.17.1. Instance Variables
1.17.2. Accessors
1.17.3. Class Variables
1.17.4. Class Methods
1.17.5. Singletons
1.17.6. Inheritance
1.17.6.1. Load path
1.17.7. Public, Private, or Protected
1.17.8. Modules and Mixins
1.18. Files
1.18.1. Creating a New File
1.18.2. Opening an Existing File
1.18.3. ARGV and ARGF
1.18.4. Renaming and Deleting Files
1.18.5. File Inquiries
1.18.6. File Modes and Ownership
1.19. The IO Class
1.20. Exception Handling
1.20.1. The rescue and ensure Clauses
1.20.2. The raise Method
1.20.3. The catch and throw Methods
1.21. Object Class
1.21.1. Object Instance Methods
1.22. Kernel Module
1.22.1.
1.22.1.1. Sprintf flags and field types
1.23. String Class
1.23.1. Expression Substitution
1.23.2. General Delimited Strings
1.23.3. Here Documents
1.23.4. Escape Characters
1.23.5. Character Encoding
1.23.6. Regular Expressions
1.23.7. String Methods
1.23.7.1. String class methods
1.23.7.2. String instance methods
1.23.7.3. String unpack directives
1.24. Array Class
1.24.1. Creating Arrays
1.24.2. Array Class Methods
1.24.3. Array Instance Methods
1.24.3.1. Array pack directives
1.25. Hash Class
1.25.1. Creating Hashes
1.25.2. Hash Class Methods
1.25.3. Hash Instance Methods
1.26. Time Formatting Directives
1.27. Interactive Ruby (irb)
1.28. Ruby Debugger
1.29. Ruby Documentation
1.30. RDoc Options
1.31. RubyGems
1.32. Rake
1.33. Ruby Resources
1.34. Glossary
About the Author
SPECIAL OFFER: Upgrade this ebook with O’Reilly
← Prev
Back
Next →
← Prev
Back
Next →