Sha256: b9ad893cc22de6b33130902b23ab68912ac0b147ff7e5500d59a112b996bb045
Contents?: true
Size: 418 Bytes
Versions: 12
Compression:
Stored size: 418 Bytes
Contents
def validate(index,struct) if struct.count != index raise "Invalid MyStruct#count #{struct.count}, should be #{index}" end if struct.title != "Title_#{index}" raise "Invalid MyStruct#title #{struct.title}, shoud be 'Title_#{index}" end raise "Missing MyStruct#your_struct" if struct.your_struct.nil? raise "Invalid YourStruct#counter" if struct.your_struct.counter != index end MAGNITUDO = 1000
Version data entries
12 entries across 12 versions & 1 rubygems