Class: Thespian::Dsl
- Inherits:
-
Object
- Object
- Thespian::Dsl
- Defined in:
- lib/thespian/dsl.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#receive_block ⇒ Object
readonly
Returns the value of attribute receive_block.
Instance Method Summary collapse
-
#initialize ⇒ Dsl
constructor
A new instance of Dsl.
- #receive(&block) ⇒ Object
Constructor Details
#initialize ⇒ Dsl
Returns a new instance of Dsl.
6 7 8 |
# File 'lib/thespian/dsl.rb', line 6 def initialize @options = {} end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/thespian/dsl.rb', line 4 def @options end |
#receive_block ⇒ Object (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 |