title: Checking equality between variable and object
body: <p>I'm having a bit of trouble getting my program to properly check for equality between the Exterior Finish(ext)and the object instances I had created before hand. Is instance_of? the issue here, as in I am not using it correctly?</p>
  
  <pre><code>##################################################
  class Wood
  end
  
  class Brick
  end
  
  class Other
  end
  #################################################
  asbestos =              Wood.new     #'Wood'
  cement_board =          Wood.new     #'Wood'
  frame_clapboard =       Wood.new     #'Wood'
  vinyl =                 Wood.new     #'Wood'
  asphalt =               Wood.new     #'Wood'
  wood_shake =            Wood.new     #'Wood'
  
  brick_stone =           Brick.new    #'Brick'
  brick_stone_veneer =    Brick.new    #'Brick'
  concrete =              Brick.new    #'Brick'
  
  glass =                 Other.new    #Other Not Supported
  other =                 Other.new    #Other Types Not Supported
  stucco =                Other.new    #Not Suppored
  aluminum =              Other.new    #Not supported
  #################################################
  
  puts "Enter name of Exterior Finish: "
  ext = gets.chomp
  
  puts"Enter year of building completion: "
  year =  gets.chomp
  
  if ext.instance_of? Wood
  
    puts "Tis Wood\n"
  
    if year.to_i.between?(1850, 1942)
      print "pre war wood\n"
  
    elsif year.to_i.between?(1943, 1977)
      print "post war wood\n"
  
    elsif year.to_i.between?(1978, 2005)
      print "near present wood\n"
  
    elsif year.to_i.between?(2006, 2014)
      print "present wood\n"
    end
  
  elsif ext.instance_of? Brick
  
    puts "Tis Brick\n"
  
    if year.to_i.between?(1850, 1942)
      print "pre war brick\n"
  
    elsif year.to_i.between?(1943, 1977)
      print "post war brick\n"
  
    elsif year.to_i.between?(1978, 2005)
      print "near present brick\n"
  
    elsif year.to_i.between?(2006, 2014)
      print "present brick\n"
    end
  
  else
  
    print "Of Type Not Supported\n"
  
  end
  </code></pre>