class

Detector::Specification::Insomnia

Inherits Detector < Reference < Object

Constants

EXPORT_FORMAT_MARKER = /"__export_format"/

Every .json/.yaml/.yml in the tree reaches these gates.

INSOMNIA_HOST_MARKER = /\.insomnia\.rest\//
TYPE_FIELD_MARKER = /"_type"/

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Registers Insomnia export paths in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers Insomnia export paths in CodeLocator.

Source
set_name

Registers Insomnia export paths in CodeLocator.

Source