123456789_123456789_123456789_123456789_123456789_

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

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: rspec-core/lib/rspec/core/invocations.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#hidden_options (rw)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/invocations.rb', line 78

PrintHelp = Struct.new(:parser, :hidden_options)

#parser (rw)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/invocations.rb', line 78

PrintHelp = Struct.new(:parser, :hidden_options)

Instance Method Details

#call(_options, _err, out)

[ GitHub ]

  
# File 'rspec-core/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