Class: RSpec::CapturingFormatter::CaptureManager::Lease

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/capturing_formatter/stream_proxy.rb

Overview

Older supported Rubies need keyword_init: true to construct leases from keyword arguments. standard:disable Style/RedundantStructKeywordInit

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#generationObject

Returns the value of attribute generation

Returns:

  • (Object)

    the current value of generation



11
12
13
# File 'lib/rspec/capturing_formatter/stream_proxy.rb', line 11

def generation
  @generation
end

#managerObject

Returns the value of attribute manager

Returns:

  • (Object)

    the current value of manager



11
12
13
# File 'lib/rspec/capturing_formatter/stream_proxy.rb', line 11

def manager
  @manager
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



11
12
13
# File 'lib/rspec/capturing_formatter/stream_proxy.rb', line 11

def owner
  @owner
end

Instance Method Details

#owner?Boolean

standard:enable Style/RedundantStructKeywordInit

Returns:

  • (Boolean)


13
14
15
# File 'lib/rspec/capturing_formatter/stream_proxy.rb', line 13

def owner?
  owner
end