Method: JSI::SchemaSet.build

Defined in:
lib/jsi/schema_set.rb

.build {|Set| ... } ⇒ SchemaSet

builds a SchemaSet from a mutable Set which is added to by the given block

Yields:

  • (Set)

    a Set to which the block may add schemas

Returns:



13
14
15
16
17
# File 'lib/jsi/schema_set.rb', line 13

def build
  mutable_set = Set.new
  yield mutable_set
  new(mutable_set)
end