Methods

def yolo
  puts 'yolo swag'
end

# now, let's see an example with an argument
def smarty_pants(name_of_person)
  puts name_of_person.to_s + ' is awesome'
end

# variable and method names
# should NOT start with upper-case
# no reason tom use upper-case
# ruby also uses snake_case...
# notCamelCase :)

smarty_pants('Adriana')

results matching ""

    No results matching ""