Class: RDFObject::ResourceReference
- Inherits:
-
Object
- Object
- RDFObject::ResourceReference
show all
- Defined in:
- lib/rdf_objects/rdf_resource.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ResourceReference.
318
319
320
321
|
# File 'lib/rdf_objects/rdf_resource.rb', line 318
def initialize(resource)
@resource = resource
@inspect = "\"#{@resource.uri}\""
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
335
336
337
|
# File 'lib/rdf_objects/rdf_resource.rb', line 335
def method_missing(method, *args)
@resource.send(method, *args)
end
|
Instance Method Details
#==(resource) ⇒ Object
323
324
325
|
# File 'lib/rdf_objects/rdf_resource.rb', line 323
def ==(resource)
return resource == @resource
end
|
#inspect ⇒ Object
327
328
329
|
# File 'lib/rdf_objects/rdf_resource.rb', line 327
def inspect
@inspect
end
|
#resource ⇒ Object
331
332
333
|
# File 'lib/rdf_objects/rdf_resource.rb', line 331
def resource
@resource
end
|