Sha256: b4c6fecb6d91a7396ebf887bdc07c2e788de18e7437f085d712fbbf650631062

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

#
# #view? is used in interface/base.rb and in rspec/rutl_matchers.rb
# so the method lives over in this lonely place.
#
module CheckView
  def view?(checkme)
    checkme.ancestors.include?(RUTL::View)
  rescue NoMethodError
    false
  end
  alias page? view?
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rutl-0.8.0 lib/utilities/check_view.rb