Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Ruby

( Duration: 4 Days )

In Ruby training course, you will learn the basics of the Ruby programming language, and then extend their knowledge to the Ruby object model, built-in classes, string and text handling, code testing, meta programming, and many more subtopics.

By attending Ruby workshop, delegates will learn:

  • Ruby’s syntax, object model, and major built-in classes
  • Basic object-orientation principles
  • Program design with Ruby
  • The use of Ruby as a scripting tool for administrative tasks
  • Testing basics and Ruby testing facilities

  • Programming experience, or programming knowledge skills.

COURSE AGENDA

1

Basic Ruby concepts and features

  • Everything's an object
  • Local variables and assignment
  • Top-level method definitions
  • Arithmetic and logical operators
  • Global variables
  • The default object (self)
2

Object orientation in Ruby

  • Messages and methods
  • Ruby’s class model
  • Inheritance
  • The object method lookup-path
3

Classes and modules

  • Class methods
  • Constants
  • Module “mix-ins” in classes
  • Modules as namespaces
  • Instance method definition syntax
  • Reopening class and module definitions
  • Overriding methods
4

Instances and attributes

  • Instance variables
  • Attribute setter and getter techniques
  • Ruby and the “Equal Access Principle”
5

Strings, symbols, and regular expressions

  • Basic string manipulation and indexing
  • Symbols and the symbol table
  • Regular expression syntax
  • Pattern-matching with scan, sub, and match
6

Collection objects and iterators

  • Array, Hash, and Range classes
  • Code blocks and iteration
  • Creating iterators with the Enumerable module
  • Collection filtering, selecting, and transforming
  • Enumerators and external iteration
7

Object dynamism

  • Adding singleton methods to objects
  • Modular extension of per-object behavior
  • Singleton classes
  • Extending existing classes
8

Threads

  • Starting, running, stopping threads
  • Threads and variable scope
  • Thread-safety considerations
9

Lambda and function objects

  • Creating first-class functions
  • Lambda argument semantics
  • Variable scope and closures
  • Block, Proc, lambda interaction
10

Metaprogramming

  • The eval family of methods
  • Programmatic method creation
  • Runtime reflection on objects
  • Traversing ObjectSpace
  • method_missing and other hooks and callbacks
11

Exception handling

  • The Exception class hierarchy
  • Raising exceptions
  • Rescue and ensure clauses
  • Writing own exception classes
12

File and I/O operations

  • Keyboard input and screen output
  • Basic file reading and writing
  • File handles as iterators
  • Low-level I/O techniques
13

Date, time, and numeric types

  • Date, Time, and DateTime classes
  • Date calculation and parsing
  • Integers and floating-point numbers
14

The standard library

  • StringIO hybrid objects
  • Struct and OpenStruct
  • Math extensions
  • FileUtils and Pathname
  • Socket and network programming facilities
  • Administrative and system libraries
15

Testing in Ruby

  • Unit testing principles
  • The MiniTest and TestUnit libraries
16

Ruby tools

  • Interactive Ruby (irb)
  • Embedded Ruby (erb)
  • The RubyGems packaging system
  • Rake task management utility

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X