Why not just delegate `#present?` to the `@element`?

```ruby
require "forwardable"

class WhenPresentDecorator
  extend Forwardable
  def_delegator :@element, :present?
end
```

This seems much cleaner solution to this problem in my opinion than extending 
`BasicObject` plus the support for Ruby 1.8 will still be there.

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/216#issuecomment-22332662
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to