Module: Anchor

Defined in:
lib/anchor/types.rb,
lib/anchor/anchor.rb,
lib/anchor/config.rb,
lib/anchor/schema.rb,
lib/anchor/version.rb,
lib/anchor/schema_generator.rb,
lib/anchor/concerns/typeable.rb,
lib/anchor/concerns/annotatable.rb,
lib/anchor/concerns/custom_meta.rb,
lib/anchor/concerns/static_context.rb,
lib/anchor/concerns/type_inferable.rb,
lib/anchor/inference/jsonapi/infer.rb,
lib/anchor/inference/jsonapi/types.rb,
lib/anchor/concerns/custom_linkable.rb,
lib/anchor/inference/jsonapi/read_type.rb,
lib/anchor/concerns/schema_serializable.rb,
lib/anchor/inference/active_record/infer.rb,
lib/anchor/inference/active_record/types.rb

Defined Under Namespace

Modules: Annotatable, CustomLinkable, CustomMeta, Inference, JSONSchema, SchemaSerializable, StaticContext, TypeInferable, TypeScript, Typeable, Types Classes: Config, Schema, SchemaGenerator

Constant Summary collapse

VERSION =
"2.15.2"

Class Method Summary collapse

Class Method Details

.configObject



3
4
5
# File 'lib/anchor/anchor.rb', line 3

def config
  @config ||= Anchor::Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



7
8
9
# File 'lib/anchor/anchor.rb', line 7

def configure
  yield(config)
end