Setter

class Student @first_name
@last_name
@email
@username
@password
enddef first_name=(name)#setter
@first_name = name
end
def to_s
"First name" #{@first_name}"
endrumi = Student.new
rumi.first_name = "Rumi"
#(= lets you know it's the setter)
#Trying to grab Obj.Rumi(type student class)
#Then first_name method Object of Rumi Obj. & student class method blueprint provides the method for that object.
#Passing in the "Rumi" string the SET the instance variable (@first_name) value to that string
puts rumi

Accessor Method

class Student@first_name
@last_name
@email…


City Info

city_info = {"lilburn" => "30047","norcross" => "30003","lawrenceville" => "30044","dacula" => "30019","alpharetta" => "30009","decatur" => "30030","loganville" => "30052","marietta" => "30060","roswell" => "30076","auburn" => "30011"}
def get_city_name(somecity)


“Big O”?…

Photo by Matt Walsh on Unsplash

Ruby Got Style! Say ‘Whaaaa’!!!

Snake Case

Photo by Mohan Moolepetlu on Unsplash

lower case words separated by underscore

Camel Case


Start with an Array of Users

users = [{ username: 'Miranda', password: 'password1' },{ username: 'Scott', password: 'password2' },{ username: 'Angela', password: 'password3' },{ username: 'Flora', password: 'password4' },{ username: 'Juan', password: 'password5' }]

“Hashing Around”

Photo by Nicole Wolf on Unsplash
{}hash_name = {'name' => 'Logan', 'favorite color' => 'Yellow'}
hash_name["name"]

Creating a |key, value| pair


let val;//Number to stringval = String(777);val = String(1 + 1);
//Bool to stringval = String(true);
//Date to Stringval = String(new Date());
//Array to Stringval = String([1, 2, 3, 4]);
//toString()val = (5).toString();
//String to…


Photo by Gabriel Sollmann on Unsplash
npm install react-router-dom
// .src/index.js

import React from 'react';
import ReactDOM from 'react-dom';
// Step 1. Import react-router
import { BrowserRouter as Router, Route } from 'react-router-dom';

const Home = ()…

Rumiko Acopa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store