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



12
13
14
# File 'lib/inspec/plugin/v1/plugin_types/resource.rb', line 12

def inspect
  to_s
end

#to_sObject



5
6
7
# File 'lib/inspec/plugin/v1/plugin_types/resource.rb', line 5

def to_s
  @__resource_name__
end