Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Acts as regexp #2

Merged
merged 3 commits into from Sep 7, 2013
Merged

Conversation

dv
Copy link
Contributor

@dv dv commented Sep 7, 2013

This patch makes a Hexpress instance act more like a Regexp class. It'll facilitate such uses as:

  • "some string" =~ Hexpress.new.with("some") # => 0
  • some_hexpress.match "some string"
  • some_hexpress === "Some String" which is very useful for case/when statements

Hope you like it and consider accepting it!

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d24e016 on dv:acts-as-regexp into * on krainboltgreene:master*.

@krainboltgreene
Copy link
Owner

Use the expectation syntax and I'll merge this.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e23bff8 on dv:acts-as-regexp into * on krainboltgreene:master*.

@krainboltgreene
Copy link
Owner

Very very happy about this! Thanks!

krainboltgreene pushed a commit that referenced this pull request Sep 7, 2013
@krainboltgreene krainboltgreene merged commit b00aea9 into krainboltgreene:master Sep 7, 2013
@dv
Copy link
Contributor Author

dv commented Sep 7, 2013

You're welcome! Glad I could contribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants