Method: YARD::Parser::Ruby::AstNode#block?

Defined in:
lib/yard/parser/ruby/ast_node.rb

#block?Boolean

Returns whether the node has a block.

Returns:

  • (Boolean)

    whether the node has a block


261
262
263
# File 'lib/yard/parser/ruby/ast_node.rb', line 261

def block?
  respond_to?(:block) || condition?
end