I came across this piece of code in Rails action pack gem (2.3.9)
[ControllerCapture, ActionController::ProcessWithTest].each do |mod|
unless ActionController::Base < mod # what does this comparison mean?
ActionController::Base.class_eval { include mod }
end
end
I am trying to understand the second line in the code shown above. What does the < operator do in this context? Is it the standard comparison operator?(if so how do you explain the code?)
More information on these operators can be found here.
For
<it reads:mod < other → true, false, or nil