Module: RTM::IO::TOJTM::TopicMap

Defined in:
lib/rtm/io/to_jtm.rb

Instance Method Summary collapse

Instance Method Details

#to_jtm_strObject

Returns the JTM representation of this RTM::TopicMap



16
17
18
19
20
21
# File 'lib/rtm/io/to_jtm.rb', line 16

def to_jtm_str          # only for export with no file and base_iri otherwise TMAPIX

  h = to_hash
  h[:version] = "1.0"
  h[:item_type] = "topicmap"
  h.to_json
end