Ruby 类的小于号(<;)是什么意思?

Ruby 类的小于号(<;)是什么意思?,ruby,Ruby,以下代码来自RubyonRails ...some code here... unless ActionController::Base < ActionController::Testing ActionController::Base.class_eval do include ActionController::Testing end end ... some code here... …这里有一些代码。。。 除非ActionCont

以下代码来自RubyonRails

  ...some code here...

  unless ActionController::Base < ActionController::Testing
    ActionController::Base.class_eval do
      include ActionController::Testing
    end
  end

  ... some code here...
…这里有一些代码。。。
除非ActionController::Base

在此上下文中,
ActionController::Base
是什么意思?

这是一个继承测试,返回一个布尔值

如果下面的语句为true,则表示左侧是右侧的子类

ActionController::Base < ActionController::Testing
ActionController::Base

有关详细信息,请参见。

这是一个继承测试,返回布尔值

如果下面的语句为true,则表示左侧是右侧的子类

ActionController::Base < ActionController::Testing
ActionController::Base

有关详细信息,请参阅。

答案非常快速准确。谢谢@merlin2011。非常快速准确的回答。谢谢@merlin2011。