Class: Simnos::DSL::Subscriptions
- Inherits:
-
Object
- Object
- Simnos::DSL::Subscriptions
- Includes:
- TemplateHelper
- Defined in:
- lib/simnos/dsl/subscriptions.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, topic, &block) ⇒ Subscriptions
constructor
A new instance of Subscriptions.
Methods included from TemplateHelper
Constructor Details
#initialize(context, topic, &block) ⇒ Subscriptions
Returns a new instance of Subscriptions.
9 10 11 12 13 14 15 16 |
# File 'lib/simnos/dsl/subscriptions.rb', line 9 def initialize(context, topic, &block) @context = context @topic = topic @result = [] instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
18 19 20 |
# File 'lib/simnos/dsl/subscriptions.rb', line 18 def result @result end |