Class: Ptero::Generator::LoadAllGenerator
- Inherits:
-
PHPGenerator
- Object
- Ptero::Generator
- PHPGenerator
- Ptero::Generator::LoadAllGenerator
- Defined in:
- lib/ptero/generators/loadallgenerator.rb
Overview
Generator for the loadall.php file that is tasked with running all other PHP files in its directory
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#priorities ⇒ Object
readonly
Returns the value of attribute priorities.
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#initialize(path, *priorities) ⇒ LoadAllGenerator
constructor
Send the directory in which to generate as a parameter, as well as the names of files that need to be loaded first.
Methods inherited from PHPGenerator
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize(path, *priorities) ⇒ LoadAllGenerator
Send the directory in which to generate as a parameter, as well as the names of files that need to be loaded first
16 17 18 19 20 21 |
# File 'lib/ptero/generators/loadallgenerator.rb', line 16 def initialize(path,*priorities) super 'loadall' # Stuff to load first, should be an array @path = Pathname.new(path) @priorities = priorities end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
23 24 25 |
# File 'lib/ptero/generators/loadallgenerator.rb', line 23 def path @path end |
#priorities ⇒ Object (readonly)
Returns the value of attribute priorities.
23 24 25 |
# File 'lib/ptero/generators/loadallgenerator.rb', line 23 def priorities @priorities end |