Class: ConvertorLayout

Inherits:
ConvertorFile show all
Defined in:
lib/convertor-layout.rb

Instance Attribute Summary

Attributes inherited from ConvertorFile

#contents, #current_dir, #current_file, #original_dir, #original_file

Instance Method Summary collapse

Methods inherited from ConvertorFile

#copy, #extract_to_partials, #find_and_replace

Constructor Details

#initialize(original_file) ⇒ ConvertorLayout

Returns a new instance of ConvertorLayout.



3
4
5
6
# File 'lib/convertor-layout.rb', line 3

def initialize(original_file)
  super(Rails.root.join('themes', $theme, 'original', original_file))
  copy(Rails.root.join('themes', $theme, 'layouts', 'application.html.erb'))
end