class Ontopia::Topicmaps::AnyNameStringifier

Constants

NO_VALUE

Public Class Methods

new() click to toggle source
# File lib/ontopia/topicmaps/stringifiers.rb, line 53
def initialize
  @topic_str = Topicmaps.topic_stringifier
end

Public Instance Methods

to_string(object) click to toggle source
# File lib/ontopia/topicmaps/stringifiers.rb, line 57
def to_string(object)
  case object
    when TopicIF then @topic_str[object]
    when TypedIF then to_string(object.get_type)
    else              NO_VALUE
  end
end