Class: Ippon::Validate::Unhalt

Inherits:
Schema
  • Object
show all
Defined in:
lib/ippon/validate.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

#&, #unhalt, #validate, #validate!, #|

Constructor Details

#initialize(child) ⇒ Unhalt

Returns a new instance of Unhalt.



728
729
730
# File 'lib/ippon/validate.rb', line 728

def initialize(child)
  @child = child
end

Instance Attribute Details

#childSchema (readonly)

Returns:



726
727
728
# File 'lib/ippon/validate.rb', line 726

def child
  @child
end

Instance Method Details

#process(result) ⇒ Object

Implements the Schema#process interface.



733
734
735
736
737
# File 'lib/ippon/validate.rb', line 733

def process(result)
  result = @child.process(result)
  result.unhalt
  result
end