Class: Algerb::Generator
- Inherits:
-
Object
show all
- Includes:
- Util
- Defined in:
- lib/algerb/generator.rb
Instance Method Summary
collapse
Methods included from Util
#file_to_class, #indentation, #remove_dir, #remove_ext, #split_dir_and_file, #split_path_as_head_and_tail
Instance Method Details
#generate(files) ⇒ Object
4
5
6
|
# File 'lib/algerb/generator.rb', line 4
def generate(files)
generate_autoloader_body(files)
end
|
#generate_autoloader_body(files) ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/algerb/generator.rb', line 8
def generate_autoloader_body(files)
builder = Algerb::FilesBuilder.new
files.each do |file|
builder.add file
end
_generate_autoloader_body(builder.files.files)
end
|