class SystemCallError
Extensions to SystemCallError
to support fOOrth.
Public Instance Methods
foorth_code()
click to toggle source
Get the fOOrth error code for a system call error.
# File lib/fOOrth/monkey_patch/exceptions.rb, line 96 def foorth_code result = "E12" if /::/ =~ self.class.to_s result += ",#{$POSTMATCH}" end result + ':' end