what kind of syntax is on the right side of this equation?

Viewed 84
def is_fibonacci?(i,a=0, b=1)
  i > a ? is_fibonacci?(i, a + b, a) : a <= i if true
end

I've never seen a <= i if true

it seems to say "return true if a <=i and return false otherwise"

But are there more examples of this strange order I can look at?

1 Answers
Related