Class: CheapCoder::NodeDetector::Assignment
- Defined in:
- lib/cheap_coder/node_detector/assignment.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
6 7 8 |
# File 'lib/cheap_coder/node_detector/assignment.rb', line 6 def detected?(node) node.type.to_s.end_with?('asgn') end |