Skip to content
Browse files

Corrected docs / comments to use ORegexp instead of ORegex.

Signed-off-by: Pritesh <pritesh@phatforge.com>
  • Loading branch information...
1 parent a43080d commit 5ccdf7fa7ce05a44767b9dab686f76adb5052212 @djsun djsun committed with Jun 26, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.txt
  2. +1 −1 lib/oniguruma.rb
  3. +1 −1 mm/manual.mm
View
2 README.txt
@@ -12,7 +12,7 @@ Ruby bindings to the Oniguruma[http://www.geocities.jp/kosako3/oniguruma/] regul
== SYNOPSIS:
- reg = Oniguruma::ORegex.new( '(?<before>.*)(a)(?<after>.*)' )
+ reg = Oniguruma::ORegexp.new( '(?<before>.*)(a)(?<after>.*)' )
match = reg.match( 'terraforming' )
puts match[0] <= 'terraforming'
puts match[:before] <= 'terr'
View
2 lib/oniguruma.rb
@@ -281,7 +281,7 @@ def inspect
#
# Returns the original string of the pattern.
#
- # ORegex.new( 'ab+c', 'ix' ).source #=> "ab+c"
+ # ORegexp.new( 'ab+c', 'ix' ).source #=> "ab+c"
def source
@pattern.freeze
end
View
2 mm/manual.mm
@@ -52,7 +52,7 @@ Oniguruma provides the same functionality (and almost the same interface) than
* Named groups.
-----------hl ruby,,false-----
- reg = ORegex.new( '(?<before>.*)(a)(?<after>.*)' )
+ reg = ORegexp.new( '(?<before>.*)(a)(?<after>.*)' )
match = reg.match( 'terraforming' )
puts match[0] #=> 'terraforming'
puts match[:before] #=> 'terr'

0 comments on commit 5ccdf7f

Please sign in to comment.
Something went wrong with that request. Please try again.