README.md in rb-fsevent-0.10.4 vs README.md in rb-fsevent-0.11.0
- old
+ new
@@ -136,14 +136,14 @@
```ruby
require 'rb-fsevent'
fsevent = FSEvent.new
fsevent.watch Dir.pwd do |paths, event_meta|
- event_meta.events.each do |event|
- puts "event ID: #{event.id}"
- puts "path: #{event.path}"
- puts "c flags: #{event.cflags}"
- puts "named flags: #{event.flags.join(', ')}"
+ event_meta['events'].each do |event|
+ puts "event ID: #{event['id']}"
+ puts "path: #{event['path']}"
+ puts "c flags: #{event['cflags']}"
+ puts "named flags: #{event['flags'].join(', ')}"
# named flags will include strings such as `ItemInodeMetaMod` or `OwnEvent`
end
end
fsevent.run
```