Module: Omnitest::Delegators
- Included in:
- Omnitest
- Defined in:
- lib/omnitest.rb
Instance Method Summary collapse
- #delegate_to_projects(meth) ⇒ Object private
- #delegate_to_psychic_class(meth) ⇒ Object private
- #delegate_to_psychic_instance(meth) ⇒ Object private
- #delegate_to_scenarios(meth) ⇒ Object private
- #delegate_to_skeptic_class(meth) ⇒ Object private
- #meth ⇒ Object private
Instance Method Details
#delegate_to_projects(meth) ⇒ 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.
45 46 47 48 49 50 |
# File 'lib/omnitest.rb', line 45 def delegate_to_projects(meth) define_method(meth) do |*args, &block| project_regex = args.shift run_action(filter_projects(project_regex), meth, configuration.concurrency, *args, &block) end end |
#delegate_to_psychic_class(meth) ⇒ 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.
31 32 33 |
# File 'lib/omnitest.rb', line 31 def delegate_to_psychic_class(meth) define_method(meth) { |*args, &block| Psychic.public_send(meth, *args, &block) } end |
#delegate_to_psychic_instance(meth) ⇒ 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.
38 39 40 |
# File 'lib/omnitest.rb', line 38 def delegate_to_psychic_instance(meth) define_method(meth) { |*args, &block| psychic.public_send(meth, *args, &block) } end |
#delegate_to_scenarios(meth) ⇒ 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.
55 56 57 58 59 60 61 |
# File 'lib/omnitest.rb', line 55 def delegate_to_scenarios(meth) define_method(meth) do |*args, &block| project_regex = args.shift scenario_regex = args.shift scenarios(project_regex, scenario_regex).map { |s| s.public_send(meth, *args, &block) } end end |
#delegate_to_skeptic_class(meth) ⇒ 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.
24 25 26 |
# File 'lib/omnitest.rb', line 24 def delegate_to_skeptic_class(meth) define_method(meth) { |*args, &block| Skeptic.public_send(meth, *args, &block) } end |
#meth ⇒ 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.
24 25 26 |
# File 'lib/omnitest.rb', line 24 def delegate_to_skeptic_class(meth) define_method(meth) { |*args, &block| Skeptic.public_send(meth, *args, &block) } end |