Module: RDFResource

Defined in:
lib/rdf-resource.rb,
lib/rdf-resource/resource.rb,
lib/rdf-resource/configuration.rb

Defined Under Namespace

Classes: Configuration, Resource

Constant Summary collapse

AGENT =
RDF::URI.parse('https://rubygems.org/gems/rdf-resource')

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



14
15
16
# File 'lib/rdf-resource.rb', line 14

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/rdf-resource.rb', line 22

def self.configure
  yield(configuration)
end

.resetObject



18
19
20
# File 'lib/rdf-resource.rb', line 18

def self.reset
  @configuration = Configuration.new
end