Sha256: cd121f5c3274fcccf47472f0c0e71563ee042758aff178249faed8eaf3633661

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

= OGC ModSpec in Ruby

== Purpose

The `modspec` Ruby gem allows you to work with OGC ModSpec instances.

NOTE: This is a work-in-progress.


== Library

=== Usage

The following code generates OGC ModSpec instances in XML and YAML.

[source,ruby]
----
require 'modspec'
doc = IO.read('spec/fixtures/chain-rc.yaml')
ms = Modspec::Suite.from_yaml(doc)
puts ms.to_yaml
----


[source,ruby]
----
require 'modspec'
doc = IO.read('spec/fixtures/chain-cc.yaml')
ms = Modspec::Suite.from_yaml(doc)
puts ms.to_yaml
----


[source,ruby]
----
require 'modspec'
doc = YAML.load(IO.read('spec/fixtures/chain-rc.yaml'))['normative-statements-classes'].first
ms = Modspec::NormativeStatementsClass.from_hash(doc)
puts ms.to_yaml
----

== Credits

This gem is developed, maintained and funded by
https://www.ribose.com[Ribose Inc.]

== License

The gem is available as open source under the terms of the
https://opensource.org/licenses/BSD-2-Clause[2-Clause BSD License].

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
modspec-0.1.0 README.adoc