Module: CheckView

Included in:
RSpec, RUTL::Interface::Base
Defined in:
lib/utilities/check_view.rb

Overview

#view? is used in interface/base.rb and in rspec/rutl_matchers.rb so the method lives over in this lonely place.

Instance Method Summary collapse

Instance Method Details

#view?(checkme) ⇒ Boolean Also known as: page?

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/utilities/check_view.rb', line 6

def view?(checkme)
  checkme.ancestors.include?(RUTL::View)
rescue NoMethodError
  false
end