Module: DAP::Relation

Defined in:
lib/dap/relation.rb

Overview

Relationships between DAP types

Defined Under Namespace

Classes: Many, OneOf

Class Method Summary collapse

Class Method Details

.supported!(klazz) ⇒ Object

Raises an error if ‘klazz` is not an allowed DAP type



4
5
6
# File 'lib/dap/relation.rb', line 4

def self.supported!(klazz)
  raise "Unsupported property class #{klazz}" unless klazz < DAP::Base || klazz < DAP::Enum
end