I hereby claim:
- I am sashah87 on github.
- I am sahil (https://keybase.io/sahil) on keybase.
- I have a public key whose fingerprint is 74D0 E09B 6B3C D2DF BFAF CF04 8F7E F3C4 D2B2 F0CA
To claim this, I am signing this object:
class AlternateParent | |
def self.new(*args) | |
raise NoMethodError, "cannot instantiate #{self.name}" if self == AlternateParent | |
super | |
end | |
def initialize(num) | |
@num = num | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
def abc(bool) | |
a=b=0 | |
a+=10 | |
raise StandardError if bool | |
"returning from main func a#{a} b#{b}" # returned unless bool | |
rescue | |
"returning from rescue a#{a} b#{b}" # returned if bool | |
ensure | |
b+=10 # always executed | |
puts "printing from ensure a#{a} b#{b}" # always executed |