module CHECKING::YOU::SweetSweet♥Magic

Find-by-content file matching à la `libmagic` www.freebsd.org/cgi/man.cgi?query=magic&sektion=5 Instance-level components.

Constants

SequenceCat

Represent one possible chain of byte sequences for a successful content match.

Attributes

cat_sequence[R]

Public Instance Methods

add_content_match(action) click to toggle source

Take a weighted `CatSequence`, store it locally as a possible match for this CYO, and memoize in classwide storage it for batch sequence matching.

# File lib/checking-you-out/sweet_sweet_love_magic.rb, line 38
def add_content_match(action)
  ::CHECKING::YOU::INSTANCE_NEEDLEMAKER.call(:@cat_sequence, action, self)
  self.class.magic_without_tears.bury(action.min, action.max, action, self)
end