Nokogiri:找到没有class属性的节点的第一次出现

1 ruby nokogiri

在下面的代码片段中,我想第一次出现没有class属性的<b>标签.

<html>
<body>
     <p>This is the <b class="abc">text in bold with a class attribute</b> and the following is <b> text in bold without a class attribute</b>
</body>
</html>   
Run Code Online (Sandbox Code Playgroud)

有什么指针吗?

pgu*_*rio 7

那将是:

doc.at('b:not([class])')
Run Code Online (Sandbox Code Playgroud)