module TavernaPlayer

This module serves as the configuration point of Taverna Player. Examples of all configuration options can be found in the taverna_player initializer.

Constants

VERSION

Public Class Methods

port_renderers {|renderer| ...} click to toggle source

Set up the renderers for each MIME type that you want to be able to show in the browser. In most cases the supplied defaults will be sufficient.

See the taverna_player initializer for more information.

# File lib/taverna-player.rb, line 104
def self.port_renderers
  yield @@port_renderer if block_given?
end
setup {|config| ...} click to toggle source

Yield this configuration class so that Taverna Player can be set up.

See the taverna_player initializer for more information.

# File lib/taverna-player.rb, line 158
def self.setup
  yield self
end
user_model_proxy = user_class click to toggle source

Set up a proxy to the main application's user model if it has one. The class name should be supplied as a string, e.g. “User”.

See the taverna_player initializer for more information.

# File lib/taverna-player.rb, line 73
def self.user_model_proxy=(user_class)
  @@user_proxy = ModelProxy.new(user_class)
end
workflow_model_proxy = workflow_class click to toggle source
workflow_model_proxy(workflow_class) {|proxy| ...}

Set up a proxy to the main application's workflow model. The class name should be supplied as a string, e.g. “Workflow”.

See the taverna_player initializer for more information.

# File lib/taverna-player.rb, line 50
def self.workflow_model_proxy(workflow_class)
  @@workflow_proxy = ModelProxy.new(workflow_class, [:file, :title, :inputs])
  yield @@workflow_proxy if block_given?
end