Class: Trinity::Handler::Loader

Inherits:
Trinity::Handler show all
Defined in:
lib/trinity/handler/loader.rb

Overview

Load the RDF statements about the current resource into the environment

Instance Method Summary

Methods inherited from Trinity::Handler

#initialize, #not_found, #query, #redirect

Constructor Details

This class inherits a constructor from Trinity::Handler

Instance Method Details

- (Object) call(env)



5
6
7
8
# File 'lib/trinity/handler/loader.rb', line 5

def call(env)
  env['trinity.data'] = query([env['trinity.subject']])
  super
end