summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-06-03 16:37:29 +0200
committerChristoph Helma <helma@in-silico.ch>2013-06-03 16:37:29 +0200
commitb0bd56e80eedde63c9e679acb7bf5b522e7b7988 (patch)
treee2e60964dba8c87930622b1566f1b0bb55c8acf4 /lib/opentox.rb
parentf2ef6216ef785656d799c880f22013f6c7e900e7 (diff)
parent962773d59d94f8d16dae11b6290fdf30aaf09d7b (diff)
Merge branch 'development' of github.com:opentox/opentox-client into development
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 0b78d7e..ac174f3 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