Class: SafeImage::Config

Inherits:
Data
  • Object
show all
Defined in:
lib/safe_image.rb

Overview

Process-wide configuration. configure! builds a frozen instance and swaps it in with a single assignment, so readers never observe a half-applied config.

Instance Attribute Summary collapse

Instance Attribute Details

#backendObject (readonly)

Returns the value of attribute backend

Returns:

  • (Object)

    the current value of backend



31
32
33
# File 'lib/safe_image.rb', line 31

def backend
  @backend
end

#landlockObject (readonly)

Returns the value of attribute landlock

Returns:

  • (Object)

    the current value of landlock



31
32
33
# File 'lib/safe_image.rb', line 31

def landlock
  @landlock
end

#max_pixelsObject (readonly)

Returns the value of attribute max_pixels

Returns:

  • (Object)

    the current value of max_pixels



31
32
33
# File 'lib/safe_image.rb', line 31

def max_pixels
  @max_pixels
end