Class: Ruote::ParticipantList::BlockParticipantContext

Inherits:
Object
  • Object
show all
Defined in:
lib/ruote/svc/participant_list.rb

Overview

Used by #extract_blocks when evaluating sub-blocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlockParticipantContext

Returns a new instance of BlockParticipantContext


321
322
323
# File 'lib/ruote/svc/participant_list.rb', line 321

def initialize
  @blocks = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object


324
325
326
# File 'lib/ruote/svc/participant_list.rb', line 324

def method_missing(m, *args, &block)
  @blocks[m.to_s] = block.to_raw_source
end

Instance Attribute Details

#blocksObject (readonly)

Returns the value of attribute blocks


320
321
322
# File 'lib/ruote/svc/participant_list.rb', line 320

def blocks
  @blocks
end