class YARD::Parser::Ruby::AstNode

def block?

Returns:
  • (Boolean) - whether the node has a block
def block?
  respond_to?(:block) || condition?
end