diff options
author | gebele <gebele@in-silico.ch> | 2013-06-05 16:37:25 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-05 16:37:25 +0200 |
commit | 5dab9d972bedb4319de39ee17253902fb37f8667 (patch) | |
tree | df63afa049f5ddf9873fe0e658a91859db490255 /lib/opentox.rb | |
parent | 0c20a7e7841c2c85a4d3260d018017d350bc0953 (diff) | |
parent | 962773d59d94f8d16dae11b6290fdf30aaf09d7b (diff) |
Merge branch 'development' of github.com:opentox/opentox-client into development
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 305b5d9..adf0030 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -11,8 +11,8 @@ module OpenTox # Ruby interface # Create a new OpenTox object - # @param [optional,String] URI - # @param [optional,String] subjectid + # @param uri [optional,String] URI + # @param subjectid [optional,String] # @return [OpenTox] OpenTox object def initialize uri=nil, subjectid=nil @rdf = RDF::Graph.new @@ -34,7 +34,7 @@ module OpenTox end # Metadata values - # @param [String] Predicate URI + # @param predicate [String] Predicate URI # @return [Array, String] Predicate value(s) def [](predicate) return nil if metadata[predicate].nil? @@ -42,8 +42,8 @@ module OpenTox end # Set a metadata entry - # @param [String] Predicate URI - # @param [Array, String] Predicate value(s) + # @param predicate [String] Predicate URI + # @param values [Array, String] Predicate value(s) def []=(predicate,values) @metadata[predicate] = [values].flatten end |