Class: Jekyll::KargWare::Integrity::Configuration
- Inherits:
-
Object
- Object
- Jekyll::KargWare::Integrity::Configuration
- 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
-
#create_tmpfile ⇒ Object
Returns the value of attribute create_tmpfile.
-
#hash_type ⇒ Object
Returns the value of attribute hash_type.
-
#write_source_mapping_url ⇒ Object
Returns the value of attribute write_source_mapping_url.
Instance Method Summary collapse
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
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() = generate_option_hash() @hash_type = ['hashType'] @write_source_mapping_url = ['writeSourceMappingURL'] @create_tmpfile = ['createTmpfile'] end |
Instance Attribute Details
#create_tmpfile ⇒ Object
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_type ⇒ Object
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_url ⇒ Object
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 |