Class: Middleman::Sitemap::Extensions::Import::ImportFileDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Middleman::Sitemap::Extensions::Import::ImportFileDescriptor
- Defined in:
- lib/middleman-core/sitemap/extensions/import.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
13 14 15 |
# File 'lib/middleman-core/sitemap/extensions/import.rb', line 13 def from @from end |
#to ⇒ Object
Returns the value of attribute to
13 14 15 |
# File 'lib/middleman-core/sitemap/extensions/import.rb', line 13 def to @to end |
Instance Method Details
#execute_descriptor(app, resources) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/middleman-core/sitemap/extensions/import.rb', line 14 def execute_descriptor(app, resources) source = ::Middleman::SourceFile.new(Pathname(from).relative_path_from(app.source_dir), Pathname(from), app.source_dir, Set.new([:source, :binary]), 0) resources + [ ::Middleman::Sitemap::Resource.new(app.sitemap, to, source) ] end |