Ruby question - new to the forum

General discussion on technical and managerial topics
no avatar
Posts: 1
Joined: Thu Mar 01, 2012 12:56 am

Ruby question - new to the forum

by ElEdwards » Thu Mar 01, 2012 1:09 am

I'm just learning some things about Ruby and I have a syntax question.

In a new program running here at work, standard Ruby commands are used in the configuration files. Here is an example of looking for a document with a specific title:
Code: Select all
running_order = "Monday 430am"

This successfully finds the literal name..... but I'd like to find more than just this one instance.
I'm looking for:
    Monday 430am
    Monday 500am
    Monday 530am
    Monday 600am
    Monday 630am

There are other "Monday <time>" instances but I just want these 5.
What is the syntax for looking for all 5 of these in a single instance of running_order =


Return to General Discussion