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.
743 744 745 746 747 748 |
# File 'lib/buildr/core/project.rb', line 743 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:
741 742 743 |
# File 'lib/buildr/core/project.rb', line 741 def blocks @blocks end |
#dependencies ⇒ Object
:nodoc:
741 742 743 |
# File 'lib/buildr/core/project.rb', line 741 def dependencies @dependencies end |
#phase ⇒ Object
:nodoc:
741 742 743 |
# File 'lib/buildr/core/project.rb', line 741 def phase @phase end |