Sha256: a307c8e6d9eb1c5a0fe1a4780e80a88c195b1fb1359077de7557e2fc05996231
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # A node extension for `args` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `args` nodes within RuboCop. class ArgsNode < Node # Whether this `args` node has any arguments. # # @return [Boolean] whether this `args` node has any arguments def empty? to_a.empty? end # The number of arguments in this `args` node. # # @return [Integer] the number of arguments in this `args` node def size to_a.size end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.49.1 | lib/rubocop/ast/node/args_node.rb |
rubocop-0.49.0 | lib/rubocop/ast/node/args_node.rb |