Ruby Assignment Operators | Ruby Operators and Control Structures ... [PDF]

We've already learned how to assign a variable using the equals sign `=` but there are many different ways to assign val

3 downloads 23 Views 188KB Size

Recommend Stories


Jack Ruby
Your big opportunity may be right where you are now. Napoleon Hill

Ruby Knighton
If you want to become full, let yourself be empty. Lao Tzu

Ruby Vineyard
Be like the sun for grace and mercy. Be like the night to cover others' faults. Be like running water

aaron ruby
Ego says, "Once everything falls into place, I'll feel peace." Spirit says "Find your peace, and then

Ruby Bridges
Keep your face always toward the sunshine - and shadows will fall behind you. Walt Whitman

Ruby James
Happiness doesn't result from what we get, but from what we give. Ben Carson

Ruby Skye
Life isn't about getting and having, it's about giving and being. Kevin Kruse

Язык Ruby
If you want to become full, let yourself be empty. Lao Tzu

Ruby Bridges
Make yourself a priority once in a while. It's not selfish. It's necessary. Anonymous

Ruby Robins
Don’t grieve. Anything you lose comes round in another form. Rumi

Idea Transcript


"Ruby Operators and Control Structures" was retired on November 27, 2017. You are now viewing the recommended replacement.

Library

Ruby Basics 169-minute Ruby Course Start Course Watch trailer Ruby Beginner

About this Course Ruby is a programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. In Ruby Basics, we'll learn how to work with Ruby and write simple Ruby programs. What you'll learn Ruby syntax Objects Strings Numbers If statements

Ruby Syntax Learn the basics of writing Ruby programs! You'll see how to define and call methods, and how to store data in variables. 16 steps Your First Ruby Program 3:14 Course Overview 1:56 Our Feature List 0:57 Methods 6:38 Methods 5 questions Methods 1 objective Comments 1:36 Defining Methods 4:00 Defining Methods 1 objective Variables 5:15 Variables 1 objective Method Arguments 7:02 Method Arguments 1 objective Method Return Values 11:42 Method Return Values 1 objective Review 4 questions

Strings Almost every program needs to work with text. Programming languages represent text using "strings". In this stage we'll take a look at Ruby's powerful features for working with strings. 8 steps Strings 1:27 String Concatenation 6:39 String Concatenation 1 objective String Interpolation 4:17 Inspecting Values 2:12 Escape Sequences 3:54 Escape Sequences 1 objective Review 3 questions

Objects In Ruby, almost every piece of data is an "object". That means the data has useful methods attached to it that you can call. In this stage, we'll learn how to use these methods! 4 steps Calling Methods on an Object 5:13 Calling Methods on an Object 1 objective Classes 6:02 Using "chomp" to Fix Our Output 1:58

Numbers

Almost every program needs to work with numbers, too. We'll learn about Ruby's two most common types of numbers, how to do math with them, and how to call methods on them. 8 steps Numeric Types 2:32 Numeric Types 1 objective Math Operations 4:52 Math Operations 1 objective Operator Precedence 2:12 Converting Strings to Numbers 4:21 Converting Strings to Numbers 1 objective Review 5 questions

Conditionals Sometimes you'll need to run a piece of code only under certain conditions. Conditionals like if and unless allow you to do that! 9 steps Comparison Operators 7:59 Comparison Operators 1 objective "if" and "unless" Statements 6:44 "if" Statements 1 objective Boolean Operators 9:05 "elsif" and "else" 4:43 A Better "check_speed" Method 1 objective Review 5 questions Course Summary 1:37

Teacher Jay McGavren Resident Ruby and Go teacher for Treehouse. Author of Head First Ruby, a tutorial book on the core Ruby language.

Download videos You need to sign up for Treehouse in order to download course videos. Sign up

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.