Class: Jekyll::KargWare::Integrity::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-kw-sri/configuration.rb

Overview

jekyll-kw-sri configuration class

Constant Summary collapse

DEFAULT_CONFIG =
{
  'hashType' => 'sha384',
  'writeSourceMappingURL' => true,
  'createTmpfile' => false
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Configuration

Returns a new instance of Configuration.



16
17
18
19
20
21
22
# File 'lib/jekyll-kw-sri/configuration.rb', line 16

def initialize(options)
  options = generate_option_hash(options)

  @hash_type = options['hashType']
  @write_source_mapping_url = options['writeSourceMappingURL']
  @create_tmpfile = options['createTmpfile']
end

Instance Attribute Details

#create_tmpfileObject

Returns the value of attribute create_tmpfile.



8
9
10
# File 'lib/jekyll-kw-sri/configuration.rb', line 8

def create_tmpfile
  @create_tmpfile
end

#hash_typeObject

Returns the value of attribute hash_type.



8
9
10
# File 'lib/jekyll-kw-sri/configuration.rb', line 8

def hash_type
  @hash_type
end

#write_source_mapping_urlObject

Returns the value of attribute write_source_mapping_url.



8
9
10
# File 'lib/jekyll-kw-sri/configuration.rb', line 8

def write_source_mapping_url
  @write_source_mapping_url
end