class Inspec::DescribeBase

def __profile_id

use - this is a private API.
so it is fully visible. The double underscore is there to discourage
While this is marked private, it gets consumed during an instance_eval,
def __profile_id
  # Excavate the profile ID. The action is a Method calling __add_check on
  # a Rule whose profile ID we want
  @action.receiver.instance_variable_get(:@__profile_id)
end

def describe(*args, &block)

def describe(*args, &block)
  @checks.push(["describe", args, block])
end

def initialize(action)

def initialize(action)
  @action = action
  @checks = []
end

def input(input_name, options = {})

def input(input_name, options = {})
  input_with_profile_id(__profile_id, input_name, options)
end

def input_object(name)

def input_object(name)
  Inspec::InputRegistry.find_or_register_input(name, __profile_id)
end

def method_missing(method_name, *arguments)

def method_missing(method_name, *arguments)
  Inspec::DSL.method_missing_resource(inspec, method_name, *arguments)
end

def one(&block)

Returns:
  • (nil) -

Parameters:
  • ruby (Proc) -- block containing checks (e.g. via describe)
def one(&block)
  return unless block_given?
  instance_eval(&block)
  @action.call("describe.one", @checks, nil)
end