Git Product home page Git Product logo

oo-email-parser-london-web-102918's Introduction

Object Oriented Email Parser

Objectives

  1. Practice defining a class and using an attr_accessor to create setter and getter methods
  2. Use TDD to write working code

Description

You will be writing an EmailParser class that gets initialized with a string of emails.

Your job is to parse those emails into a useful array using an instance method, parse.

I should be able to do this:

emails = "[email protected], [email protected]"
parser = EmailParser.new(emails)

parser.parse
# => ["[email protected]", "[email protected]"]

You should be able to initialize with a list of emails either separated with spaces or separated with commas. The parse method should, additionally, only return unique emails.

Instructions

This lab is test-driven, so run the test suite to get started and use the test output to get the program working.

Hints:

  • How will you control for parsing a list of emails that is either comma separated or separated by a white space.
  • Use an attr_accessor to set and get the list of emails

View Object Oriented Email Parser on Learn.co and start learning to code for free.

oo-email-parser-london-web-102918's People

Contributors

kthffmn avatar sarogers avatar loganhasson avatar fislabstest avatar ahimmelstoss avatar sophiedebenedetto avatar benjagross avatar fs-lms-test-bot avatar bhollan avatar deniznida avatar nancyko avatar victhevenot avatar

Watchers

 avatar Kevin McAlear avatar  avatar  avatar Belinda Black avatar Ian Cottam avatar  avatar Joe Cardarelli avatar Sam Birk avatar Sara Tibbetts avatar  avatar  avatar  avatar Jaichitra (JC) Balakrishnan avatar Antoin avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar A. Perez avatar Nicole Kroese  avatar  avatar Lore Dirick avatar Nicolas Marcora avatar Lisa Jiang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.