class Mon::Contract::React

Public Instance Methods

valid?(val) click to toggle source
# File lib/contracts/reactron.rb, line 16
def valid?(val)
  # Should be a React (i.e. success or failure), and if it's a
  # success, the value should be valid re: the provided contract
  val.is_a?(Mon::M::React) and (valid_nested_contract?(val._))
end