Exception: MiscHacks::ChildError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ ChildError

Returns a new instance of ChildError.



25
26
27
28
# File 'lib/mischacks.rb', line 25

def initialize status
  @status = Integer status
  super "Child failed with status #{status}"
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



23
24
25
# File 'lib/mischacks.rb', line 23

def status
  @status
end