Class: CheapCoder::NodeDetector::Branch
- Defined in:
- lib/cheap_coder/node_detector/branch.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#check, #initialize, #print_debug
Constructor Details
This class inherits a constructor from CheapCoder::NodeDetector::Base
Instance Method Details
#detected?(node) ⇒ Boolean
9 10 11 |
# File 'lib/cheap_coder/node_detector/branch.rb', line 9 def detected?(node) BRANCH_NODES.include?(node.type) end |