head_first_ruby_methods_classes.rb
def talk(animal_type, name)
  if animal_type == "bird"
    puts "#{name} says Chirp! Chirp!"
  elsif animal_type == "dog"
    puts "#{name} says bark!"
  elsif animal_type == "cat"
    puts "#{name} says meow!"
  end
end
#messy methods with too many if statement example
messy methods with too many if statement example
messy methods with too many if statement example
def talk(animal_type, name)
  if animal_type == "bird"
    puts "#{name} says Chirp! Chirp!"
  elsif animal_type == "dog"
    puts "#{name} says bark!"
  elsif animal_type == "cat"
    puts "#{name} says meow!"
  end
end
def talk ( animal_type , name ) if animal_type == "bird" puts "#{name} says Chirp! Chirp!" elsif animal_type == "dog" puts "#{name} says bark!" elsif animal_type == "cat" puts "#{name} says meow!" end end
messy methods with too many if statement example
messy methods with too many if statement example
animal_type
name