Parent

Class/Module Index [+]

Quicksearch

Ruote::ParticipantRegistrationProxy

Engine#register uses this proxy when it's passed a block.

Originally written by Torsten Schoenebaum for ruote-kit.

Public Class Methods

new(engine) click to toggle source
# File lib/ruote/engine.rb, line 574
def initialize (engine)

  @engine = engine
end

Public Instance Methods

catchall(*args) click to toggle source
# File lib/ruote/engine.rb, line 584
def catchall (*args)

  klass = args.empty? ? Ruote::StorageParticipant : args.first
  options = args[1] || {}

  participant('.+', klass, options)
end
method_missing(method_name, *args) click to toggle source

Maybe a bit audacious...

# File lib/ruote/engine.rb, line 594
def method_missing (method_name, *args)

  participant(method_name, *args)
end
participant(name, klass, options={}) click to toggle source
# File lib/ruote/engine.rb, line 579
def participant (name, klass, options={})

  @engine.register_participant(name, klass, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.