Git Product home page Git Product logo

oo-email-parser-online-web-ft-021119's Introduction

Object Oriented Email Parser

Learning Goals

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

Description

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

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

I should be able to do this:

email_addresses = "[email protected], [email protected]"
parser = EmailAddressParser.new(email_addresses)

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

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

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 email addresses that is either comma separated or separated by a white space?
  • Use an attr_accessor to set and get the list of email addresses

oo-email-parser-online-web-ft-021119's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.