Class: Jekyll::Importmap::MappedFile
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Mappable
#keyword_init, #path, #preload
Instance Method Summary collapse
-
#initialize(hash) ⇒ MappedFile
constructor
A new instance of MappedFile.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/jekyll-importmap/mapped_file.rb', line 11 def name @name end |