Exception: Gem::MockGemUi::TermError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rubygems/mock_gem_ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code) ⇒ TermError

Returns a new instance of TermError.


21
22
23
24
# File 'lib/rubygems/mock_gem_ui.rb', line 21

def initialize(exit_code)
  super
  @exit_code = exit_code
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code


19
20
21
# File 'lib/rubygems/mock_gem_ui.rb', line 19

def exit_code
  @exit_code
end