Class: TLDR::TestGroup
- Inherits:
-
Struct
- Object
- Struct
- TLDR::TestGroup
- Defined in:
- lib/tldr/value/test_group.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
- #tests ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration
2 3 4 |
# File 'lib/tldr/value/test_group.rb', line 2 def configuration @configuration end |
#tests ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tldr/value/test_group.rb', line 5 def tests @tests ||= configuration.flat_map { |(klass, method)| klass = Kernel.const_get(klass) if klass.is_a?(String) if method.nil? ([klass] + ClassUtil.gather_descendants(klass)).flat_map { |klass| ClassUtil.gather_tests(klass) } else Test.new(klass, method) end } end |
Instance Method Details
#group? ⇒ Boolean
18 19 20 |
# File 'lib/tldr/value/test_group.rb', line 18 def group? true end |