Class: RSpec::Core::Invocations::PrintHelp
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb
Instance Attribute Summary collapse
-
#hidden_options ⇒ Object
Returns the value of attribute hidden_options.
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
Methods inherited from Struct
Instance Attribute Details
#hidden_options ⇒ Object
Returns the value of attribute hidden_options
78 79 80 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb', line 78 def @hidden_options end |
#parser ⇒ Object
Returns the value of attribute parser
78 79 80 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb', line 78 def parser @parser end |
Instance Method Details
#call(_options, _err, out) ⇒ Object
79 80 81 82 83 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb', line 79 def call(, _err, out) # Removing the hidden options from the output. out.puts parser.to_s.gsub(/^\s+(#{.join('|')})\b.*$\n/, '') 0 end |