Ruby, Part 3 of 6: Input/Output and Gems
Interactive

Ruby, Part 3 of 6: Input/Output and Gems

LearnNow Online
Updated Aug 23, 2018

Course description

This course covers some practical components of Ruby development including how to work with its file system. Ruby expert Jordan Hudgens will explore methods that enable Ruby programs to generate files and dynamically add data to preexisting files. Later, to help you practically apply this knowledge, Hudgens will guide you through incorporating Ruby gems into an application and also building a Ruby program that connects to an outside API and works with the data which is sent back.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

You should be familiar with basic text editing in a Windows or Linux environment. No prior knowledge of programming is assumed.


Meet the expert

Jordan Hudgens

Jordan Hudgens has certifications for Ruby on Rails, Thinkful; Ruby on Rails, Bloc.io; Front End Development, Thinkful; and AngularJS, Thinkful. He is currently vice president of engineering for TRACKR in Midland, Texas and is working on his PhD in Computer Science from Texas Tech. In addition to Ruby, Jordan works with PHP, JavaScript, MySQL, Postgres, CSS3, C, C++, C#, Objective-C, and Python. He also works with the frameworks Rails (Ruby), Zend (PHP), and Django (Python), plus the libraries AngularJS, jQuery, and Backbone.js.

Video Runtime

86 Minutes

Time to complete

321 Minutes

Course Outline

Finishing Touches

File Operations (27:25)

  • Introduction (00:24)
  • Creating a File (04:00)
  • Demo: Creating a File (02:29)
  • Demo: File.new (04:23)
  • Reading from a File (01:25)
  • Demo: Reading from a File (04:26)
  • Appending to a File (02:24)
  • Demo: Appending to a File (03:58)
  • Deleting a File (01:21)
  • Demo: Deleting a File (02:14)
  • Summary (00:18)

Input and Output (25:57)

  • Introduction (00:30)
  • Printing out Options (04:35)
  • Demo: Printing (04:46)
  • Input from Console (03:49)
  • Demo: Input from Console (05:30)
  • Heredocs (03:24)
  • Demo: Heredocs (02:57)
  • Summary (00:23)

RubyGems (32:53)

  • Introduction (00:28)
  • What Are RubyGems? (04:19)
  • Demo: Using Gems (05:51)
  • Using HTTParty to Call APIs (02:12)
  • Demo: HTTParty Gem (06:23)
  • Using the Dish Gem (03:00)
  • Demo: Dish Gem (04:52)
  • Demo: Post to API (05:23)
  • Summary (00:21)