Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Ruote::CodeParticipant

TODO

Attributes

context[RW]

Public Class Methods

new(opts) click to toggle source
# File lib/ruote/part/code_participant.rb, line 37
def initialize(opts)

  @opts = opts
end

Public Instance Methods

context=(con) click to toggle source
# File lib/ruote/part/code_participant.rb, line 42
def context=(con)

  @context = con

  @context.treechecker.code_check(@opts['code'])

  instance_eval(@opts['code'])

  #instance_eval do
  #  alias code_consume consume
  #  def consume(workitem)
  #    code_consume(workitem)
  #  rescue => e
  #    raise e
  #  end
  #  # what about doing that with other methods
  #end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.