Module: Watirmark::KeywordOverrideMethods
- Defined in:
- lib/watirmark/page/keywords.rb
Overview
This builds a list of keywords to remove from the auto-generated lists.
Instance Method Summary (collapse)
- - (Object) ignore(*items) (also: #reject)
- - (Object) populate_only(*items)
- - (Object) stub(method_name)
- - (Object) verify_only(*items)
Instance Method Details
- (Object) ignore(*items) Also known as: reject
23 24 25 |
# File 'lib/watirmark/page/keywords.rb', line 23 def ignore(*items) items.each { |item| stub "populate_#{item}"; stub "verify_#{item}"; } end |
- (Object) populate_only(*items)
32 33 34 |
# File 'lib/watirmark/page/keywords.rb', line 32 def populate_only(*items) items.each { |item| stub "verify_#{item}" } end |
- (Object) stub(method_name)
17 18 19 20 21 |
# File 'lib/watirmark/page/keywords.rb', line 17 def stub (method_name) define_method method_name.to_sym do ; end end |
- (Object) verify_only(*items)
28 29 30 |
# File 'lib/watirmark/page/keywords.rb', line 28 def verify_only(*items) items.each { |item| stub "populate_#{item}" } end |