Method: Datadog::AppSec::Assets.read

Defined in:
lib/datadog/appsec/assets.rb

.read(filename, mode = 'rb') ⇒ Object



33
34
35
# File 'lib/datadog/appsec/assets.rb', line 33

def read(filename, mode = 'rb')
  File.open(filepath(filename), mode) { |f| f.read || raise('Unexpected nil IO object') }
end