module RSpec::Core::Metadata

def self.build_hash_from(args, warn_about_example_group_filtering=false)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.build_hash_from: (Array[] args, ?false warn_about_example_group_filtering) -> untyped

This signature was generated using 1 sample from 1 application.

Other tags:
    Private: -
def self.build_hash_from(args, warn_about_example_group_filtering=false)
  hash = args.last.is_a?(Hash) ? args.pop : {}
  hash[args.pop] = true while args.last.is_a?(Symbol)
  if warn_about_example_group_filtering && hash.key?(:example_group)
    RSpec.deprecate("Filtering by an `:example_group` subhash",
                    :replacement => "the subhash to filter directly")
  end
  hash
end