Class: PageObjectWrapper::Validator
- Inherits:
-
DslElement
- Object
- DslElement
- PageObjectWrapper::Validator
- Defined in:
- lib/page_object_wrapper/Validator.rb
Instance Attribute Summary collapse
-
#validate_block_value ⇒ Object
readonly
Returns the value of attribute validate_block_value.
Instance Method Summary collapse
-
#initialize(label, &block) ⇒ Validator
constructor
A new instance of Validator.
Methods inherited from DslElement
#label_alias, #label_alias_value
Constructor Details
#initialize(label, &block) ⇒ Validator
Returns a new instance of Validator.
7 8 9 10 |
# File 'lib/page_object_wrapper/Validator.rb', line 7 def initialize(label, &block) super label @validate_block_value = block end |
Instance Attribute Details
#validate_block_value ⇒ Object (readonly)
Returns the value of attribute validate_block_value.
5 6 7 |
# File 'lib/page_object_wrapper/Validator.rb', line 5 def validate_block_value @validate_block_value end |