Module: Rng::ToRnc

Defined in:
lib/rng/to_rnc.rb

Overview

RNG to RNC converter module Provides functionality to convert RELAX NG XML Schema (RNG) to RELAX NG Compact Syntax (RNC)

Class Method Summary collapse

Class Method Details

.convert(schema) ⇒ String

Convert an RNG schema object to RNC syntax

Parameters:

Returns:

  • (String)

    The RNC representation of the schema



13
14
15
16
# File 'lib/rng/to_rnc.rb', line 13

def convert(schema)
  # Delegate to RncParser which has the actual implementation via RncBuilder
  RncParser.to_rnc(schema)
end