Class: ConvertorLayout
- Inherits:
-
ConvertorFile
- Object
- ConvertorFile
- ConvertorLayout
- 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
-
#initialize(original_file) ⇒ ConvertorLayout
constructor
A new instance of ConvertorLayout.
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 |