Class: XDR::UnionValidator

Inherits:
ActiveModel::Validator
  • Object
show all
Defined in:
lib/xdr/union_validator.rb

Instance Method Summary collapse

Instance Method Details

#validate(union) ⇒ Object



2
3
4
5
6
# File 'lib/xdr/union_validator.rb', line 2

def validate(union)
  # validate a discriminant is set
  # validate the arm is compatible with the set discriminant
  # TODO
end