Ruby: Using Time
There are many functions available for Time, Month, Day, and Year. Below are a few examples. # Find out the Current Time t = Time.now # Find out the Month,...
Ruby, Rbenv, RVM, Ruby on Rails, Gems
There are many functions available for Time, Month, Day, and Year. Below are a few examples. # Find out the Current Time t = Time.now # Find out the Month,...
Before you save a password to a database, it may make sense to encrypt it. That way, when you do some user authentication, you can compare the users...
# A. Import the YAML Library require 'yaml' # B. Create an array names = %w[chris sandy josie billy suzie] # Example 1 : Converting an array into YAML using:...
Download the Credit Card Library from Lucas Carlson. sudo gem install creditcard # Checksum Digit, there is an algorithm that checksum must match # A. Import the libraries require '...
Here's a short example of how to parse an RSS feed using Ruby. require 'rss' require 'open-uri' open('https://www.chrisjmendez....