Class: Simnos::DSL::Topic
- Inherits:
-
Object
- Object
- Simnos::DSL::Topic
- Includes:
- TemplateHelper
- Defined in:
- lib/simnos/dsl/topic.rb
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
-
#initialize(context, name, &block) ⇒ Topic
constructor
A new instance of Topic.
- #result ⇒ Object
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, &block) ⇒ Topic
Returns a new instance of Topic.
134 135 136 137 138 139 140 141 142 |
# File 'lib/simnos/dsl/topic.rb', line 134 def initialize(context, name, &block) @name = name @context = context.merge(name: name) @result = Result.new(@context) @result.name = name instance_eval(&block) end |
Instance Method Details
#result ⇒ Object
144 145 146 |
# File 'lib/simnos/dsl/topic.rb', line 144 def result @result end |