Class: Capistrano::Configuration::Extensions::Actions::Invocation::BlockProxy
- Inherits:
-
Object
- Object
- Capistrano::Configuration::Extensions::Actions::Invocation::BlockProxy
- Defined in:
- lib/capistrano/configuration/extensions/actions/invocation.rb
Instance Attribute Summary collapse
-
#blocks ⇒ Object
Returns the value of attribute blocks.
Instance Method Summary collapse
-
#initialize ⇒ BlockProxy
constructor
A new instance of BlockProxy.
- #run(&block) ⇒ Object
Constructor Details
#initialize ⇒ BlockProxy
Returns a new instance of BlockProxy.
10 11 12 |
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 10 def initialize @blocks = [] end |
Instance Attribute Details
#blocks ⇒ Object
Returns the value of attribute blocks.
8 9 10 |
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 8 def blocks @blocks end |
Instance Method Details
#run(&block) ⇒ Object
14 15 16 |
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 14 def run(&block) blocks << block end |