Class: Algerb::FilesBuilder
- Inherits:
-
Object
- Object
- Algerb::FilesBuilder
- Includes:
- Util
- Defined in:
- lib/algerb/files_builder.rb
Constant Summary collapse
- FILE_PATTERN =
%r{^([a-z0-9\_\.])/?}
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
Instance Method Summary collapse
- #add(path) ⇒ Object
-
#initialize ⇒ FilesBuilder
constructor
A new instance of FilesBuilder.
- #mkdir_p(path) ⇒ Object
Methods included from Util
#file_to_class, #indentation, #remove_dir, #remove_ext, #split_dir_and_file, #split_path_as_head_and_tail
Constructor Details
#initialize ⇒ FilesBuilder
Returns a new instance of FilesBuilder.
8 9 10 |
# File 'lib/algerb/files_builder.rb', line 8 def initialize @files = Algerb::Files.new end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
4 5 6 |
# File 'lib/algerb/files_builder.rb', line 4 def files @files end |