Class: Buildr::Extension::Callback
Overview
Extension callback details
Instance Attribute Summary collapse
-
#blocks ⇒ Object
:nodoc:.
-
#dependencies ⇒ Object
:nodoc:.
-
#name ⇒ Object
:nodoc:.
-
#phase ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(phase, name, dependencies, blocks) ⇒ Callback
constructor
A new instance of Callback.
- #merge(callback) ⇒ Object
Constructor Details
#initialize(phase, name, dependencies, blocks) ⇒ Callback
Returns a new instance of Callback.
747 748 749 750 751 752 |
# File 'lib/buildr/core/project.rb', line 747 def initialize(phase, name, dependencies, blocks) @phase = phase @name = name @dependencies = dependencies @blocks = (blocks ? (Array === blocks ? blocks : [blocks]) : []) end |
Instance Attribute Details
#blocks ⇒ Object
:nodoc:
745 746 747 |
# File 'lib/buildr/core/project.rb', line 745 def blocks @blocks end |
#dependencies ⇒ Object
:nodoc:
745 746 747 |
# File 'lib/buildr/core/project.rb', line 745 def dependencies @dependencies end |
#phase ⇒ Object
:nodoc:
745 746 747 |
# File 'lib/buildr/core/project.rb', line 745 def phase @phase end |