I have a definition of a function in Ruby like this:
def is_fdi?
self.get_fed_state =~ /fdi/i ? true : false
end
Here is_fdi?
is a function returning a Boolean. As far as I understand self.get_fed_state
is a function call and its returned value is being compared with /fd1/i
, but get_fed_state
is not defined in the file anywhere.
Does anyone have any idea how is_fdi?
is calling get_fed_state
? Or, is there something that I should know to crack this?