This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
				
			
		
		
		
		
			
	
	
		
			
	
		
		
			
				
				
					
						
						
						
							 | 
							
							class Layout < DesignFile
 | 
						
						
						
						
							 | 
							
							  include Parser
 | 
						
						
						
						
							 | 
							
							  embedded_in :design
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  attr_reader :content
 | 
						
						
						
						
							 | 
							
							  embeds_many :layout_parts
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  def content
 | 
						
						
						
						
							 | 
							
							    self.file.read
 | 
						
						
						
						
							 | 
							
							  end
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  def self.exist_one?
 | 
						
						
						
						
							 | 
							
							    Layout.count > 0
 | 
						
						
						
						
							 | 
							
							  end
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  after_save:parse_layout
 | 
						
						
						
						
							 | 
							
							
 | 
						
						
						
						
							 | 
							
							  def parse_layout  
 | 
						
						
						
						
							 | 
							
							    parse_layout_layout_part(self)
 | 
						
						
						
						
							 | 
							
							  end
 | 
						
						
						
						
							 | 
							
							end
 |