Class: Ruote::ParticipantList::BlockParticipantContext
- Inherits:
-
Object
- Object
- Ruote::ParticipantList::BlockParticipantContext
- Defined in:
- lib/ruote/svc/participant_list.rb
Overview
Used by #extract_blocks when evaluating sub-blocks.
Instance Attribute Summary collapse
-
#blocks ⇒ Object
readonly
Returns the value of attribute blocks.
Instance Method Summary collapse
-
#initialize ⇒ BlockParticipantContext
constructor
A new instance of BlockParticipantContext.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ BlockParticipantContext
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
#blocks ⇒ Object (readonly)
Returns the value of attribute blocks.
320 321 322 |
# File 'lib/ruote/svc/participant_list.rb', line 320 def blocks @blocks end |