Class: PartialCompiler::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/partial_compiler/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCompiler

Returns a new instance of Compiler.



7
8
9
10
11
12
# File 'lib/partial_compiler/compiler.rb', line 7

def initialize
  @files = FileCopier.create_files
  @files.each do |file|
    find_partials(file) 
  end
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



5
6
7
# File 'lib/partial_compiler/compiler.rb', line 5

def files
  @files
end