Class: RSpec::Core::Invocations::PrintHelp

Inherits:
Struct show all
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

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Attribute Details

#hidden_optionsObject

Returns the value of attribute hidden_options

Returns:

  • (Object)

    the current value of 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
  @hidden_options
end

#parserObject

Returns the value of attribute parser

Returns:

  • (Object)

    the current value of 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(_options, _err, out)
  # Removing the hidden options from the output.
  out.puts parser.to_s.gsub(/^\s+(#{hidden_options.join('|')})\b.*$\n/, '')
  0
end