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
-
#sgyml_type(input) ⇒ String
Classifies a value by its SGYML type.
Instance Method Details
#sgyml_type(input) ⇒ String
Classifies a value by its SGYML type.
16 17 18 |
# File 'lib/schemagraphy/liquid/filters.rb', line 16 def sgyml_type input SchemaGraphy::SGYML.classify(input) end |