什么 在这个Ruby表达式中做什么?

Dav*_*vid 0 ruby chef-infra

Chef Style Guide页面上出现这个Ruby表达式:

antarctica_hint = hint?('antarctica')
Run Code Online (Sandbox Code Playgroud)

究竟是什么?提示之前和之后('antarctica')是什么意思?它只是方法名称的一部分吗?(即该方法被称为'提示?'不是'提示')

Wan*_*ker 6

它是方法名称的一部分,人们通常(并不总是)将它用于返回布尔值的方法.

Ruby的一个例子是 Class#respond_to?