Module: SchemaGraphy::Filters

Defined in:
lib/schemagraphy/liquid/filters.rb

Overview

Liquid filter wrappers for SchemaGraphy domain operations.

These filters are registered globally when SchemaGraphy is loaded and are available in any Liquid rendering environment that has required this gem. Following the DocOps Lab convention, each gem in the ecosystem registers its own domain-specific filters here rather than delegating to AsciiSourcerer.

Instance Method Summary collapse

Instance Method Details

#sgyml_type(input) ⇒ String

Classifies a value by its SGYML type.

Returns:

  • (String)

    A “Kind:Class” type string (e.g. “Scalar:String”, “Compound:ArrayList”).

See Also:



16
17
18
# File 'lib/schemagraphy/liquid/filters.rb', line 16

def sgyml_type input
  SchemaGraphy::SGYML.classify(input)
end