Class: AppDrone::Javascript
- Defined in:
- lib/app_drone/drones/javascript/javascript.rb
Instance Attribute Summary collapse
-
#on_readies ⇒ Object
Returns the value of attribute on_readies.
-
#pipeline_requires ⇒ Object
Returns the value of attribute pipeline_requires.
Attributes inherited from Drone
Instance Method Summary collapse
Methods inherited from Drone
#>>, #^, #align, categories, category, dependants, dependencies, depends_on, desc, #do!, #do_finally!, drones, #flair!, generator_method, human_name, #initialize, #method_missing, #notify!, owns_generator_method, #pair?, pairs, pairs_with, param, #param, param_named, param_with, params, precursors, #render, run_after, to_sym
Constructor Details
This class inherits a constructor from AppDrone::Drone
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AppDrone::Drone
Instance Attribute Details
#on_readies ⇒ Object
Returns the value of attribute on_readies.
5 6 7 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 5 def on_readies @on_readies end |
#pipeline_requires ⇒ Object
Returns the value of attribute pipeline_requires.
5 6 7 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 5 def pipeline_requires @pipeline_requires end |
Instance Method Details
#execute ⇒ Object
21 22 23 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 21 def execute do! :application_coffee end |
#on_ready(r) ⇒ Object
19 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 19 def on_ready(r); self.on_readies << r end |
#pipeline(r) ⇒ Object
18 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 18 def pipeline(r); self.pipeline_requires << r end |
#setup ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/app_drone/drones/javascript/javascript.rb', line 9 def setup self.pipeline_requires = [] self.on_readies = [] self.pipeline 'jquery' self.pipeline 'jquery_ujs' self.pipeline 'init' end |