Class: PageObjectWrapper::Validator

Inherits:
DslElement show all
Defined in:
lib/page_object_wrapper/Validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueObject (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