Sha256: 5540be60cf1a7b0c89dc9c2124aba337c0f6ee44db877838df428185062a7536
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true require_relative 'statement_checker/reachable_to_next_statement' require_relative 'statement_checker/returnable_statement' module WhatDyaReturn module StatementChecker # # @param node [::RuboCop::AST::Node] # @return [Boolean] # def self.returnable_statement?(node) @returnable_statement ||= ReturnableStatement.new @returnable_statement.ok?(node) end # # @param node [::RuboCop::AST::Node] # @return [Boolean] # def self.reachable_to_next_statement?(node) @reachable_to_next_statement ||= ReachableToNextStatement.new @reachable_to_next_statement.ok?(node) 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/statement_checker.rb |
what_dya_return-0.2.0 | lib/what_dya_return/statement_checker.rb |