Coder Social home page Coder Social logo

phrg-oo-email-parser'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

Does this need an update?

Please open a GitHub issue or pull-request. Provide a detailed description that explains the issue you have found or the change you are proposing. Then "@" mention your instructor on the issue or pull-request, and send them a link via Connect.

PHRG Object Oriented Email Parser

phrg-oo-email-parser's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

laurenabrams

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.