Class: Schematist::DSL::SchemaBuilders::SchemaBlock

Inherits:
Struct
  • Object
show all
Defined in:
lib/schematist/dsl/schema_builders.rb

Overview

What a schema block yields: the schemas declared in it, and the keywords set on the enclosing node

Instance Attribute Summary collapse

Instance Attribute Details

#keywordsObject

Returns the value of attribute keywords

Returns:

  • (Object)

    the current value of keywords



7
8
9
# File 'lib/schematist/dsl/schema_builders.rb', line 7

def keywords
  @keywords
end

#schemasObject

Returns the value of attribute schemas

Returns:

  • (Object)

    the current value of schemas



7
8
9
# File 'lib/schematist/dsl/schema_builders.rb', line 7

def schemas
  @schemas
end