Description
Ruby Code Cut Course Outline
The following topics will be covered during this course:
Course Introduction
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
-
Session 1: Introduction to Ruby
- What is Ruby?
- What is it used for?
- Installing Ruby
- Ruby Basics
Session 2: Ruby Language Elements
- Variables and constants
- Operators
- Assignments
- Integer, float and string formats
- Single and double quotes
- Here documents
Session 3: Control Structures
- Blocks and if statements
- Boolean and range operators
- Conditionals – else and case
- Loops – while, for, until
- Break, next, retry and redo
Session 4: Classes and Objects
- Objects, classes and methods
- Constructors and attributes
- Instance and class variables
- Local and global variables
- Class and instance methods
- Including external files – load and require
Session 5: Input and Output in Ruby
- Opening and closing files
- Reading from and writing to files
Session 6: Arrays and Hashes in Ruby
- Arrays and hashes
- Building an array
- The %w shortcut
- Nested arrays
- Iterators
Session 7: Object Orientation
- Inheritance
- Base classes and subclasses
- What’s inherited
- Overriding
- Abstract classes
- Polymorphism
- Multiple Inheritance
- Class structure
- Visibility
Session 8: Classes and Object Scoping
- Singletons
- Namespaces and modules
- Mixins
- Destructors and garbage collection
- Freezing objects
Session 9: Object Orientation Techniques
- Programming and method standards
- Formal Methods
- Unified Modelling Language (UML)
Session 10: Strings and Regular Expressions
- Meta Characters
- Anchors, literals, character groups and counts
- Matching in Ruby
- Modifiers i, o, x and m
- Pattern matching variables
Session 11: Special Variables and Pseudo – Variables
- ARGV and $0
- Special variables
- Environment variables
- Pseudo-variables
- Reserved words
Session 12: Exceptions
- Begin and end
- Raise and rescue
- Throw and catch
Course duration : 2 days
Reviews
There are no reviews yet.