Class: RSpec::Core::OutputWrapper
- Inherits:
-
Object
- Object
- RSpec::Core::OutputWrapper
show all
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of OutputWrapper.
9
10
11
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb', line 9
def initialize(output)
@output = output
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
17
18
19
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb', line 17
def method_missing(name, *args, &block)
output.send(name, *args, &block)
end
|
Instance Attribute Details
6
7
8
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb', line 6
def output
@output
end
|
Instance Method Details
#respond_to?(name, priv = false) ⇒ Boolean
13
14
15
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/output_wrapper.rb', line 13
def respond_to?(name, priv=false)
output.respond_to?(name, priv)
end
|