Learn your way! Get started

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

with expert Jordan Hudgens


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 6/2/2016
Level Beginner
Runtime 1h 26m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



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.

Prerequisites

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

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
Ruby Development

Meet the expert

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.

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)