Method: Bluepill::ProcessConditions::Http#check

Defined in:
lib/bluepill/process_conditions/http.rb

#check(value) ⇒ Object



39
40
41
42
43
44
# File 'lib/bluepill/process_conditions/http.rb', line 39

def check(value)
  return false unless value.kind_of?(@kind)
  return true  unless @pattern
  return false unless value.class.body_permitted?
  @pattern === value.body
end