Class: RazorRisk::Razor::Control::Gem::MockGem::Commands::PushCommand
- Inherits:
-
Object
- Object
- RazorRisk::Razor::Control::Gem::MockGem::Commands::PushCommand
- Defined in:
- lib/razor_risk/razor/control/gem/gem_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.clear ⇒ Object
376 377 378 |
# File 'lib/razor_risk/razor/control/gem/gem_helpers.rb', line 376 def self.clear @@push_block = nil end |
.push_block(&block) ⇒ Object
372 373 374 |
# File 'lib/razor_risk/razor/control/gem/gem_helpers.rb', line 372 def self.push_block &block @@push_block = block end |
Instance Method Details
#send_gem(gem_file) ⇒ Object
380 381 382 |
# File 'lib/razor_risk/razor/control/gem/gem_helpers.rb', line 380 def send_gem gem_file @@push_block.call(gem_file) if @@push_block end |