Skip to content

Commit

Permalink
Implemented RDF::Resource#resource?.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Apr 5, 2010
1 parent acb2f34 commit d594d20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/rdf/model/resource.rb
Expand Up @@ -19,5 +19,13 @@ def self.new(*args, &block)
super
end
end

##
# Returns `true` to indicate that this value is a resource.
#
# @return [Boolean]
def resource?
true
end
end
end

0 comments on commit d594d20

Please sign in to comment.