module Yarrow::Schema::Types::CompoundType

Public Instance Methods

instance(unit_type) click to toggle source
# File lib/yarrow/schema/types.rb, line 145
def instance(unit_type)
  @unit = Instance.of(unit_type)
  self
end
interface(*args) click to toggle source
# File lib/yarrow/schema/types.rb, line 155
def interface(*args)
  @unit = Interface.of(args)
  self
end
kind(unit_type) click to toggle source
# File lib/yarrow/schema/types.rb, line 150
def kind(unit_type)
  @unit = Kind.of(unit_type)
  self
end