Sha256: cd438b123bfb4e3fdf159ce9629885572b31b2b31dbf92b26f2d6148e1ce0e0d
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 module RTM::IO # YAML Export. # Each Topic Maps Construct gets a to_yaml method. module TOYAML module TopicMap # Returns the YAML representation of this RTM::TopicMap def to_yaml to_hash.to_yaml end end module Topic # Returns the YAML representation of this RTM::Topic def to_yaml to_hash.to_yaml end end module Association # Returns the YAML representation of this RTM::Association def to_yaml to_hash.to_yaml end end module Name # Returns the YAML representation of this RTM::Name def to_yaml to_hash.to_yaml end end module Occurrence # Returns the YAML representation of this RTM::Occurrence def to_yaml to_hash.to_yaml end end module Role # Returns the YAML representation of this RTM::Role def to_yaml to_yaml_hash.to_yaml end end module Variant # Returns the YAML representation of this RTM::Variant def to_yaml to_yaml_hash.to_yaml end end RTM.register_extension( self ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.2.0 | lib/rtm/io/to_yaml.rb |