Class: RazorRisk::Razor::Control::Gem::MockGem::Commands::PushCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/razor_risk/razor/control/gem/gem_helpers.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.clearObject



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