by Ahmad hamza (@ahmad_719)
The Surgeon
The Hair Stylist
1.to_i    #=> Fixnum
"1".to_i  #=> Fixnum You should treat objects according to the methods they define,
rather than the classes from which they inherit or the modules they include.
class Parser
  def parse(type)
    puts 'The Parser class received the parse method'
    if type == :xml
      puts 'An instance of the XmlParser class received the parse message'
    elsif type == :json
      puts 'An instance of the JsonParser class received the parse message'
    end
  end
end