README.adoc in relaton-ietf-0.6.0 vs README.adoc in relaton-ietf-0.6.1
- old
+ new
@@ -126,9 +126,25 @@
item.to_xml bibdata: true
=>"<bibdata>
...
----
+=== Create bibliographic item form YAML
+[source,ruby]
+----
+hash = YAML.load_file 'spec/examples/ietf_bib_item.yml'
+=> {"id"=>"RFC 8341",
+...
+
+bib_hash = RelatonIetf::HashConverter.hash_to_bib hash
+=> {:id=>"RFC 8341",
+...
+
+RelatonIetf::IetfBibliographicItem.new bib_hash
+=> #<RelatonIetf::IetfBibliographicItem:0x007f9a929dde40
+...
+----
+
== Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/metanorma/relaton-ietf.
== License