class RoadForest::Augment::Affordance::Remove
Public Instance Methods
apply(term) { |node, type, Af.Remove| ... }
click to toggle source
# File lib/roadforest/augment/affordance.rb, line 27 def apply(term) if term.resource.allowed_methods.include?("DELETE") node = ::RDF::Node.new yield [node, ::RDF.type, Af.Remove] yield [node, Af.target, term.uri] each_grant_token("DELETE", term) do |token| yield [node, Af.authorizedBy, token] end end end