Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplifying examples

  • Loading branch information...
commit ba730ca144f7b9d9e2618a1a4b6be412a5977a31 1 parent 735e4d1
@iangreenleaf authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 gogogo/yes.md
View
20 gogogo/yes.md
@@ -36,25 +36,25 @@
!SLIDE ruby
@@@ ruby
- "aaabc".rmatch? { 1.or_more "a" }
+ "aaa".rmatch? { 1.or_more "a" }
- "aaabc".rmatch? { 5.or_less "a" }
+ "aaa".rmatch? { 5.or_less "a" }
- "aaabc".rmatch? { 3.exactly "a" }
+ "aaa".rmatch? { 3.exactly "a" }
- "aaabc".rmatch? { (1..5).of "a" }
+ "aaa".rmatch? { (1..5).of "a" }
!SLIDE ruby
@@@ ruby
- "aaabc".rmatch? { 0.or_more "a" }
+ "aaa".rmatch? { 0.or_more "a" }
- "aaabc".rmatch? { any "a" }
+ "aaa".rmatch? { any "a" }
!SLIDE ruby
@@@ ruby
- "aaabc".rmatch? { 1.or_more "a" }
+ "aaa".rmatch? { 1.or_more "a" }
- "aaabc".rmatch? { some "a" }
+ "aaa".rmatch? { some "a" }
!SLIDE
# Character sets #
@@ -65,11 +65,11 @@
!SLIDE ruby
@@@ ruby
- "abc1234".rmatch? { 3.exactly letter }
+ "abc".rmatch? { 3.exactly letter }
!SLIDE ruby
@@@ ruby
- "abc1234".rmatch? { 4.exactly digit }
+ "1234".rmatch? { 4.exactly digit }
!SLIDE ruby
@@@ ruby
Please sign in to comment.
Something went wrong with that request. Please try again.