Class: Middleman::Sitemap::Extensions::MoveFile::MoveFileDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Middleman::Sitemap::Extensions::MoveFile::MoveFileDescriptor
- Defined in:
- lib/middleman-core/sitemap/extensions/move_file.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
15 16 17 |
# File 'lib/middleman-core/sitemap/extensions/move_file.rb', line 15 def from @from end |
#to ⇒ Object
Returns the value of attribute to
15 16 17 |
# File 'lib/middleman-core/sitemap/extensions/move_file.rb', line 15 def to @to end |
Instance Method Details
#execute_descriptor(_app, resources) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/middleman-core/sitemap/extensions/move_file.rb', line 16 def execute_descriptor(_app, resources) resources.each do |r| r.destination_path = to if from == r.path || from == r.destination_path end resources end |