About the course
Our Advanced Ruby training course will take delegates on a journey into more advanced usage and Best Practices of coding in Ruby. The course is rich in hands-on practical exercises to bring the techniques and theory alive.
Ruby is an Open-Source language and forms the backbone of a number of web app frameworks, most notably Rails (check out our Ruby on Rails training course for more details).
Online and in-house face-to-face options are available - as part of a wider customised training programme, or as a standalone workshop, on-site at your offices or at one of many flexible meeting spaces in the UK and around the World.
-
- Reflection and Ruby's object model
- Methods and Instance variables
- Using Pry and Debugging Ruby Code
- Ruby Metaprogramming
- Calling methods
- ...and much more!
-
Ruby developers who want to get right under the bonnet with the Ruby language.
-
Previous experience of Ruby development is required (for instance if you've attended a Ruby Programming training course), and a good grasp of OO programming principles.
-
This advanced Ruby course is available for private / custom delivery for your team - as an in-house face-to-face workshop at your location of choice, or as online instructor-led training via MS Teams (or your own preferred platform).
Get in touch to find out how we can deliver tailored training which focuses on your project requirements and learning goals.
-
Ruby Programming Training Course
Ruby Reflection:
Discussion: Ruby's object model
How to: list the methods available to an object
How to: see the values of an object's instance variables
How to: show an object's class hierarchy
How to: use pry to learn more about our code (including debugging)
Ruby Metaprogramming:
How to: call methods dynamically with `send`
example: serialising and deserialising an object to and from a hash
How to: define methods dynamically with `define_method`
example: implementing ActiveRecord's `find_by_xxx` methods
How to: catch calls to undefined methods with `method_missing`
example: implementing (in another way) ActiveRecord's `find_by_xxx` methods
How to: define classes dynamically with `Class.new`
example: reimplementing the standard library's `Struct` class
Bringing it all together
exercise: building simple library to interact with RESTful web service by generating code from an XML definition of the service
Discussion: when to use metaprogramming
-
https://www.ruby-lang.org/en/ - get Ruby!
https://www.jetbrains.com/ruby/ - JetBrains' RubyMine IDE
https://code.visualstudio.com/docs/languages/ruby - Shopify's Ruby plugin for VS Code
Trusted by



