diff options
author | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:09:29 +0100 |
---|---|---|
committer | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:09:29 +0100 |
commit | fa598d05504f6dd43e29e0f93a3f25d254ebd7c0 (patch) | |
tree | 7ecbeaf86a0a418342596d95a45f91f5fc2b01c8 /b.rb | |
parent | a181d44ee4b78d7e016cf5b9e8fd5591723615bd (diff) | |
download | mmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.zip mmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.tar.gz |
mmap-0.1.9
Diffstat (limited to 'b.rb')
-rwxr-xr-x | b.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ f.write("\0" * PAGESIZE) f.write("b.rb") f.write("\0" * PAGESIZE) f.close -m = Mmap.new("aa", "rw", "offset" => 0) +m = Mmap.new("aa", "w", "offset" => 0) p m.size == "b.rb".size + 2 * PAGESIZE p m.scan(/[a-z.]+/) == ["b.rb"] p m.index("b.rb") == PAGESIZE |