Class: Thespian::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/thespian/dsl.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDsl

Returns a new instance of Dsl.



6
7
8
# File 'lib/thespian/dsl.rb', line 6

def initialize
  @options = {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/thespian/dsl.rb', line 4

def options
  @options
end

#receive_blockObject (readonly)

Returns the value of attribute receive_block.



3
4
5
# File 'lib/thespian/dsl.rb', line 3

def receive_block
  @receive_block
end

Instance Method Details

#receive(&block) ⇒ Object



10
11
12
# File 'lib/thespian/dsl.rb', line 10

def receive(&block)
  @receive_block = block
end