Sha256: 51d47731abac094bb8afe2b239813aec7df465142ac42ca6866e31a055cb864f
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module WhatDyaReturn module AST # # A node extension for `if` nodes. # class UntilNode < ::RuboCop::AST::UntilNode # # @example # # until true # 42 # unreachable # end # # @return [Boolean] # def body_reachable? condition.truthy_literal?.! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
what_dya_return-0.2.1 | lib/what_dya_return/ast/node/until_node.rb |
what_dya_return-0.2.0 | lib/what_dya_return/ast/node/until_node.rb |