Module: RTM::Sugar::TopicMap::Readable

Defined in:
lib/rtm/sugar/topic_map/readable.rb

Instance Method Summary collapse

Instance Method Details

#read_only?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
13
14
15
# File 'lib/rtm/sugar/topic_map/readable.rb', line 8

def read_only?
  begin
    answer = engine.feature("http://tmapi.org/features/readOnly")
  rescue org.tmapi.core.FeatureNotRecognizedException
    answer = false
  end
  return answer
end