Skip to content

Commit

Permalink
Fix documentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldiamond committed Jun 13, 2012
1 parent efdd52a commit 94eb18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/active_rdf/model/property.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ module RDF
# age.to_a => ActiveRdfError: http://activerdf.org/test/age: no associated subject # age.to_a => ActiveRdfError: http://activerdf.org/test/age: no associated subject
# #
# email = RDF::Property.new('http://activerdf.org/test/email', 'http://activerdf.org/test/eyal') # email = RDF::Property.new('http://activerdf.org/test/email', 'http://activerdf.org/test/eyal')
# email.replace("eyal@cs.cu.nl") # replace any existing values # email.replace("eyal@cs.vu.nl") # replace any existing values
# email.add("eyal.oren@deri.com") # add new value to this property # email.add("eyal.oren@deri.com") # add new value to this property
# email += ("eyal.oren@deri.net") # alternative way to add new value # email += ("eyal.oren@deri.net") # alternative way to add new value
# email.clear # delete any existing values # email.clear # delete any existing values
# email.add(["eyal@cs.cu.nl","eyal.oren@deri.com"]) # add array containing values # email.add(["eyal@cs.vu.nl","eyal.oren@deri.com"]) # add array containing values
# email["eyal.oren@deri.com"] = "eyal.oren@deri.net" # replace existing value # email["eyal.oren@deri.com"] = "eyal.oren@deri.net" # replace existing value
# email[p.index("eyal.oren@deri.net")] = "eyal.oren@deri.org" # replace existing value by key # email[p.index("eyal.oren@deri.net")] = "eyal.oren@deri.org" # replace existing value by key
# email.include?("eyal.oren@deri.org") => true # check for existing value # email.include?("eyal.oren@deri.org") => true # check for existing value
# email == ["eyal.oren@deri.org","eyal@cs.cu.nl"] => true # compare value(s) to array (order is ignored) # email == ["eyal.oren@deri.org","eyal@cs.vu.nl"] => true # compare value(s) to array (order is ignored)
# email.delete("eyal@cs.cu.nl") # delete specific value # email.delete("eyal@cs.vu.nl") # delete specific value
# email == "eyal.oren@deri.org" => true # compare value(s) to single value # email == "eyal.oren@deri.org" => true # compare value(s) to single value
# email.collect!{|val| val.gsub(/@/,' at ').gsub(/\./,' dot ')} # update value(s) with result of block # email.collect!{|val| val.gsub(/@/,' at ').gsub(/\./,' dot ')} # update value(s) with result of block
class Property < RDFS::Resource class Property < RDFS::Resource
Expand Down

0 comments on commit 94eb18b

Please sign in to comment.