Question: i have some field like Firstname, Lastname , Country on country field i have add button to store country name in database if user add country then filled fields blank after reload a page

Answer: 
This is how it is done

```
3.times.reduce(B) {|a, _| a.superclass } # => BasicObject

```
There's nothing existing (that I know of). But here, I built one for you. :)

```
class A
end

class B < A
end

class Object
  def call_repeatedly(sym, n)
    res = self
    n.times { res = res.send(sym)}
    res
  end
end

B.call_repeatedly(:superclass, 3) # => BasicObject

```