• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back

Mathematics

Math


*Also contains sub-methods such as sin() and tan() *

How to identify the reciever the message.

dot


example: Math.sqrt(9)

defining a method

def


example: def hi

tell ruby you are done defining a method

end

combining a bunch of methods into one action

Class (combination of characteristics and functions)

Class (combination of characteristics and functions)



Class

Blueprint from which individual objects are created.

Global variables

a single variable that is available across classes. defined by a dollar sign ($)

Class Variables

available across different objects within a specific class. it is preceded by @@ and followed by the vairable name.

Instance Variables

variables available to all methods of a particular class. these variables change from object to object. preceded by @ sign followed by the variable name.

Local Variables

variables that are defined in a method. not available outside of the defined method, usually begins with a lowercase letter or an underscore.

each

a method that accepts a block of code then runs that block of code for every element in a list.

lambda

a function without a name (anonymous)