Flatiron School Assignment

Marti Dolce
Nov 10, 2020

Learning methods in Ruby today.

Objectives

  1. Define a method that takes in an argument and uses that argument in the method body.
  2. Define a method that takes in two arguments and uses both arguments in the method body.
=begin
# Author: Martinique Dolce
# Course: Flatiron School 2020, November 9 - 20201, April 2021
# Contact: me@martidolce.com | https://modis.martidolce.com
=end

# lib/introduction.rb

#introduction

def introduction(name)
puts "Hi, my name is #{name}."
end
#introduction("Marti")

#introduction_with_language

def introduction_with_language(name,language)
puts "Hi, my name is #{name} and I am learning to program in #{language}."
end

--

--