Class: CallSheet::DSL
- Inherits:
-
Object
- Object
- CallSheet::DSL
- Includes:
- Deterministic::Prelude::Result
- Defined in:
- lib/call_sheet/dsl.rb
Instance Attribute Summary collapse
- #container ⇒ Object readonly private
- #options ⇒ Object readonly private
- #steps ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize(options, &block) ⇒ DSL
constructor
private
A new instance of DSL.
Constructor Details
#initialize(options, &block) ⇒ DSL
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DSL.
24 25 26 27 28 29 30 |
# File 'lib/call_sheet/dsl.rb', line 24 def initialize(, &block) = @container = .fetch(:container) @steps = [] instance_exec(&block) end |
Instance Attribute Details
#container ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/call_sheet/dsl.rb', line 18 def container @container end |
#options ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/call_sheet/dsl.rb', line 15 def end |
#steps ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/call_sheet/dsl.rb', line 21 def steps @steps end |
Instance Method Details
#call ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
40 41 42 |
# File 'lib/call_sheet/dsl.rb', line 40 def call Transaction.new(steps) end |