Module: YamlExporter

Defined in:
lib/yaml_exporter.rb,
lib/yaml_exporter/schema.rb,
lib/yaml_exporter/builder.rb,
lib/yaml_exporter/version.rb,
lib/yaml_exporter/exporter.rb,
lib/yaml_exporter/importer.rb,
lib/yaml_exporter/structure.rb,
lib/yaml_exporter/type_inference.rb,
lib/yaml_exporter/nodes/attribute.rb,
lib/yaml_exporter/nodes/many_base.rb,
lib/yaml_exporter/nodes/one_owned.rb,
lib/yaml_exporter/nodes/many_find_by.rb,
lib/yaml_exporter/nodes/many_through.rb,
lib/yaml_exporter/nodes/one_reference.rb,
lib/yaml_exporter/nodes/many_reference.rb,
lib/yaml_exporter/nodes/many_positional.rb,
lib/yaml_exporter/nodes/one_reference_of.rb

Overview

Top-level entrypoint: defines the include YamlExporter hook and the public API methods (yaml_structure, yaml_schema, yaml_import, yaml_export). Parsing, import, export and schema generation live in dedicated classes under lib/yaml_exporter/.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Nodes, TypeInference Classes: Builder, DuplicateKeyError, Error, Exporter, Importer, LiteralString, Schema, Structure, UnknownAttributeError

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



26
27
28
# File 'lib/yaml_exporter.rb', line 26

def self.included(base)
  base.extend(ClassMethods)
end