Class: TestLauncher::CLI::Options
- Inherits:
-
Struct
- Object
- Struct
- TestLauncher::CLI::Options
- Defined in:
- lib/test_launcher/cli/options.rb
Instance Attribute Summary collapse
-
#disable_spring ⇒ Object
Returns the value of attribute disable_spring.
-
#example_name ⇒ Object
Returns the value of attribute example_name.
-
#force_spring ⇒ Object
Returns the value of attribute force_spring.
-
#frameworks ⇒ Object
Returns the value of attribute frameworks.
-
#rerun ⇒ Object
Returns the value of attribute rerun.
-
#run_all ⇒ Object
Returns the value of attribute run_all.
-
#search_string ⇒ Object
Returns the value of attribute search_string.
-
#searcher ⇒ Object
Returns the value of attribute searcher.
-
#shell ⇒ Object
Returns the value of attribute shell.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(**args) ⇒ Options
Returns a new instance of Options.
14 15 16 17 |
# File 'lib/test_launcher/cli/options.rb', line 14 def initialize(**args) raise ArgumentError.new("These keys are allowed and required: #{members}") unless args.keys.sort == members.sort args.each { |k, v| self[k] = v } end |
Instance Attribute Details
#disable_spring ⇒ Object
Returns the value of attribute disable_spring
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def disable_spring @disable_spring end |
#example_name ⇒ Object
Returns the value of attribute example_name
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def example_name @example_name end |
#force_spring ⇒ Object
Returns the value of attribute force_spring
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def force_spring @force_spring end |
#frameworks ⇒ Object
Returns the value of attribute frameworks
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def frameworks @frameworks end |
#rerun ⇒ Object
Returns the value of attribute rerun
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def rerun @rerun end |
#run_all ⇒ Object
Returns the value of attribute run_all
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def run_all @run_all end |
#search_string ⇒ Object
Returns the value of attribute search_string
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def search_string @search_string end |
#searcher ⇒ Object
Returns the value of attribute searcher
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def searcher @searcher end |
#shell ⇒ Object
Returns the value of attribute shell
3 4 5 |
# File 'lib/test_launcher/cli/options.rb', line 3 def shell @shell end |