Module: Yarrow::Schema::Types::CompoundType
Instance Method Summary collapse
Instance Method Details
#instance(unit_type) ⇒ Object
126 127 128 129 |
# File 'lib/yarrow/schema/types.rb', line 126 def instance(unit_type) @unit = Instance.of(unit_type) self end |
#interface(*args) ⇒ Object
136 137 138 139 |
# File 'lib/yarrow/schema/types.rb', line 136 def interface(*args) @unit = Interface.of(args) self end |
#kind(unit_type) ⇒ Object
131 132 133 134 |
# File 'lib/yarrow/schema/types.rb', line 131 def kind(unit_type) @unit = Kind.of(unit_type) self end |