Mod 1 Flashcards
(42 cards)
are what allows us to store data in Ruby, containers
variable
a packet of instructions, a set of reusable code
methods
an input to a method
argument
guides for method, place hold for arguments
parameters
the result/ output of a method
return value
piece of data
object
running a command
execute
where less complex functionality is exposed in an interface and more complex functionality is suppressed
abstraction
why do we use methods
streamline, reusability, faster, DRY
how does abstract help us code
keeps complexity from users
is a description of how something should behave
Class
A type of of object (blueprint)
class
piece of data
object
a specific object (built from blueprint)
Instance
noun- what an object ‘is’, attributes that describe object
state
verb- what an object ‘does’ or what ‘can be done’ to an object, Methods that model object behavior
behavior
specific properties of an object
attribute
a type of variable that states with ‘@’
instance variable
is a hash or array
collection
is doing something several times
iteration
everything between do and end
block
=> | x |
block variable
used to extend or modify functionality in Ruby applications
Gem
the verification of the behavior we were expecting
assertion