Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Ruby Essential Training Part 3: Files, Formats, Templates

via LinkedIn Learning

Overview

Prepare for a new career with $100 off Coursera Plus
Gear up for jobs in high-demand fields: data analytics, digital marketing, and more.
Use Ruby to interact with the file system. Learn how to read and write to files, import and export data, create reusable templates, and find and organize files and directories.

Syllabus

Introduction
  • Learn the essentials of working with files in Ruby
  • What you need to know
1. The File System
  • Input/output basics
  • File system basics
  • Types of file paths
  • File permissions
2. Work with Files
  • Access files
  • Write to files
  • Read from files
  • File pointer
  • Read or write an entire file
  • Rename, delete, copy
  • Examine file details
  • Challenge: List maker
  • Solution: List maker
3. Work with Directories
  • Create directories
  • Change directories
  • Entries
  • Glob
  • Challenge: Multi-list maker
  • Solution: Multi-list maker
4. Common Data Formats
  • CSV
  • CSV to hashes
  • YAML
  • JSON
  • XML
5. ERB Templating
  • Embed Ruby
  • Binding
  • Template files
  • Challenge: Mail merge
  • Solution: Mail merge
Conclusion
  • Next steps

Taught by

Kevin Skoglund

Reviews

Start your review of Ruby Essential Training Part 3: Files, Formats, Templates

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.