module RDF::RDFObjects::ObjectSet
Attributes
predicate[R]
subject[R]
Public Instance Methods
<<(o)
click to toggle source
# File lib/rdf/rdfobjects/object_set.rb, line 4 def <<(o) [*o].each do |object| next unless object @subject.push(@predicate, object) end self.replace(@subject[@predicate]) end
clear()
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 16 def clear @subject[@predicate]=nil super end
concat(ary)
click to toggle source
# File lib/rdf/rdfobjects/object_set.rb, line 20 def concat(ary) ary.each do |i| @subject.push(@predicate, i) end self.replace(@subject[@predicate]) end
delete(o)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 27 def delete(o) d = super(o) @subject.remove(@predicate, o) d end
delete_at(i)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 33 def delete_at(i) d = super(i) @subject.remove(@predicate, d) if d d end
fill(*args)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 39 def fill(*args) super(args) @subject[@predicate]=self @subject[@predicate] end
insert(index, *obj)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 49 def insert(index, *obj) super(index, obj) @subject[@predicate]=self self end
pop(n=nil)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 55 def pop(n=nil) p = super(n) [*p].each do |obj| @subject.remove(@predicate, obj) if obj end self end
replace(ary)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 44 def replace(ary) obj_set=@subject[@predicate]=ary super(obj_set) end
reverse!()
click to toggle source
def push(*obj)
super(obj) @subject[@predicate] = self self
end
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 69 def reverse! super @subject[@predicate] = self self end
rotate!(cnt=1)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 75 def rotate!(cnt=1) super(cnt) @subject[@predicate] = self self end
set_statement(stmt)
click to toggle source
# File lib/rdf/rdfobjects/object_set.rb, line 12 def set_statement(stmt) @subject = stmt.subject @predicate = stmt.predicate end
shift(n=nil)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 81 def shift(n=nil) s = super(n) @subject[@predicate] = self s end
shuffle!()
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 87 def shuffle! super @subject[@predicate] = self self end
sort!()
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 93 def sort! super @subject[@predicate] = self self end
unshift(*obj)
click to toggle source
Calls superclass method
# File lib/rdf/rdfobjects/object_set.rb, line 99 def unshift(*obj) super(obj) @subject[@predicate] = self self end