Exception: Berkshelf::BerkshelfError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Class Method Summary collapse

Class Method Details

.set_status_code(code) ⇒ Object

Parameters:

  • code (Integer)


5
6
7
8
# File 'lib/berkshelf/errors.rb', line 5

def set_status_code(code)
  define_method(:status_code) { code }
  define_singleton_method(:status_code) { code }
end