Skip to content

diontheroulde/dion_and_cooper_first_git_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My 4 Favorite Ruby Methods

Argument Error

It is raised when the arguments are wrong and there isn't a more specific exception class.

[1, 2, 3].first(4, 5)

Array

Is an ordered collection of objects called elements

ary = Array.new    #=> []
Array.new(3)       #=> [nil, nil, nil]
Array.new(3, true) #=> [true, true, true]

Class

These are first class objects in ruby

class Name
 # some code describing the class behavior
end

TypeError

Raised when encoutering an object when it is not of the expected type.

[1, 2, 3].first("two")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published