Class: Kashi::DSL::Cake
- Inherits:
-
Object
- Object
- Kashi::DSL::Cake
- Defined in:
- lib/kashi/dsl/cake.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, tests = [], contacts = [], &block) ⇒ Cake
constructor
A new instance of Cake.
Constructor Details
#initialize(context, tests = [], contacts = [], &block) ⇒ Cake
Returns a new instance of Cake.
10 11 12 13 14 15 16 17 18 |
# File 'lib/kashi/dsl/cake.rb', line 10 def initialize(context, tests = [], contacts = [], &block) @context = context @result = OpenStruct.new(tests: tests, contact_groups: contacts) @tests = [] @contacts = [] instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/kashi/dsl/cake.rb', line 8 def result @result end |