Hello and welcome to this lecture in this lecture or we are going to practice many plate in parades
using different methods.
So I'm using the interactive ruby which is the screen here.
If you are on a Windows machine you can access a hi all programs.
Good to Ruby.
And you just click on the icon if you are on a Mac go to a terminal type in RB or if you are on Linux
you can also type in ah being in your shell and that you give me access.
I'm going to start by creating a new Harry.
I'm going to call these fruits when I type in fruits.
This will be the name of Marie.
I'm going to see cause to assign a value and then I include the array symbol.
So the first object in that hour is going to be an apple.
See Paul's comma menkes objet.
I'm going to say horyn.
Makes.
B.
MARY.
I'm going to do one more make beef strawberry straw.
Then close the oury press enter.
So has now created these arrays for me if I want to list the arie's to put the Puts followed by the
name of the erry each would give me a list so listed all members of the array.
If I wanted to paint that it had to be a tree.
I can do that in two ways.
First for reference the arid vides name Corda area by name and into a space and then double less than
sign followed by the name.
I need a new name.
I want to keep the Harry object so I want to add grapes to the list size of type in grapes
and press enter and that should add grapes to the list.
If I do a put on that again puts a by the name of B.
Harry is his seed grapes list.
So you've got grapes listed.
Another way you can get pain to the area is by he push metate.
So if I want to add something else I'll call the tree by name I'll say fruits dont push followed by
the name of the new fruit.
Say plan.
Press Enter.
So now I did look at the area structure he's added plumb to the area as well to view this troxell of
dairy.
Just call the area my name.
Do fruits.
Don't inspect and that will press centre.
Now give me the structure.
So these are kind of like containers in the arrays it tells me in content 1.
Apples container to origins in three berris and so on.
So this is destruction in where these contain various objects.
Each one represents different objects.
This is 0 1 2 3 4 5.
You can also reverse the objects in the array.
So let me list them out do puts.
So give me a list of the Plus a 5 1 2 reverse the order do fruit's dot reverse.
You can see is give is reversed Grape's was the lancer's Giving me grapes first.
I can see how Paul was the first here in the list here Paul is that last plan was the last second first.
So if you want to reverse he just use reverse and that will reverse the all.
You can also add a raise to each other so a raise can contain either a raise or you can join them together.
So let's create a new Harry I am going to create a new record.
There to wall veggie tables.
I am going to set that to hurry and the first member would be broccoli on say procope.
Brock will be my first fruit out on a lot of fruit.
I had a cabbage this time.
I just make it to 4 for now but feel free to add my IF wish I press centre.
Now got another Harry.
Just two objects.
If I want to call that area just call it by its name.
Puts.
Followed by fakie table.
And that will give me a list.
So if I want to merge the two trees together are just typing fruit's Plus there are two balls and press
pointer as you can see if had the two arrays together and you can see it gives me a list of all the
objects in five different areas first and then goes on to the ones from the vegetable.
So you gone broccoli you've got cabbage.
So that's how you manage plate harrie's.
Please feel free to experiment a bit further and.
So you get acquainted to how it works.
You can also reference the ruby documentation on more methods of how to manage police parade.
This is just a basic introduction.
This much more you can do with Harris many thanks for watching.
And bye for now.