Module: Inspec::ResourceBehaviors

Included in:
Plugins::Resource
Defined in:
lib/inspec/plugin/v1/plugin_types/resource.rb

Instance Method Summary collapse

Instance Method Details

#inspectString

Overwrite inspect to provide better output to RSpec results.

Returns:

  • (String)

    full name of the resource



14
15
16
# File 'lib/inspec/plugin/v1/plugin_types/resource.rb', line 14

def inspect
  to_s
end

#to_sObject



7
8
9
# File 'lib/inspec/plugin/v1/plugin_types/resource.rb', line 7

def to_s
  @__resource_name__
end