Module: RubyReactor::Dsl::TemplateHelpers
- Included in:
- ComposeBuilder, MapBuilder, Reactor::ClassMethods, StepBuilder
- Defined in:
- lib/ruby_reactor/dsl/template_helpers.rb
Instance Method Summary collapse
- #element(map_name, path = nil) ⇒ Object
-
#Failure(error) ⇒ Object
rubocop:disable Naming/MethodName.
- #input(name, path = nil) ⇒ Object
- #result(step_name, path = nil) ⇒ Object
-
#Success(value = nil) ⇒ Object
Make Success and Failure available in DSL contexts rubocop:disable Naming/MethodName.
- #value(val) ⇒ Object
Instance Method Details
#element(map_name, path = nil) ⇒ Object
18 19 20 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 18 def element(map_name, path = nil) RubyReactor::Template::Element.new(map_name, path) end |
#Failure(error) ⇒ Object
rubocop:disable Naming/MethodName
30 31 32 33 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 30 def Failure(error) # rubocop:enable Naming/MethodName RubyReactor.Failure(error) end |
#input(name, path = nil) ⇒ Object
6 7 8 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 6 def input(name, path = nil) RubyReactor::Template::Input.new(name, path) end |
#result(step_name, path = nil) ⇒ Object
10 11 12 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 10 def result(step_name, path = nil) RubyReactor::Template::Result.new(step_name, path) end |
#Success(value = nil) ⇒ Object
Make Success and Failure available in DSL contexts rubocop:disable Naming/MethodName
24 25 26 27 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 24 def Success(value = nil) # rubocop:enable Naming/MethodName RubyReactor.Success(value) end |
#value(val) ⇒ Object
14 15 16 |
# File 'lib/ruby_reactor/dsl/template_helpers.rb', line 14 def value(val) RubyReactor::Template::Value.new(val) end |