Class: Jekyll::Importmap::MappedFile

Inherits:
Mappable
  • Object
show all
Defined in:
lib/jekyll-importmap/mapped_file.rb

Overview

MappedFile = Struct.new(:name, :path, :preload, keyword_init: true) MappedDir = Struct.new(:dir, :under, :path, :preload, keyword_init: true)

Instance Attribute Summary collapse

Attributes inherited from Mappable

#keyword_init, #path, #preload

Instance Method Summary collapse

Methods inherited from Mappable

#absolute_root_path, #calculate_absolute_root_path, #resolved_path

Constructor Details

#initialize(hash) ⇒ MappedFile

Returns a new instance of MappedFile.



13
14
15
16
# File 'lib/jekyll-importmap/mapped_file.rb', line 13

def initialize(hash)
    super
    @name = hash[:name]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/jekyll-importmap/mapped_file.rb', line 11

def name
  @name
end