Class: Oops::Tasks
Constant Summary collapse
- DEFAULTS =
{ prerequisites: ['assets:precompile'], additional_paths: [] }
Instance Attribute Summary collapse
-
#additional_paths ⇒ Object
Returns the value of attribute additional_paths.
-
#prerequisites ⇒ Object
Returns the value of attribute prerequisites.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Tasks
constructor
A new instance of Tasks.
Constructor Details
#initialize {|_self| ... } ⇒ Tasks
Returns a new instance of Tasks.
13 14 15 16 17 18 19 |
# File 'lib/oops/tasks.rb', line 13 def initialize(&block) DEFAULTS.each do |key, value| public_send("#{key}=", value) end yield(self) create_task! end |
Instance Attribute Details
#additional_paths ⇒ Object
Returns the value of attribute additional_paths.
6 7 8 |
# File 'lib/oops/tasks.rb', line 6 def additional_paths @additional_paths end |
#prerequisites ⇒ Object
Returns the value of attribute prerequisites.
6 7 8 |
# File 'lib/oops/tasks.rb', line 6 def prerequisites @prerequisites end |