Sha256: a08b328cd6b0a8990ad68cfbf92adc4ae2901d88c6d23cee999d459334fae232
Contents?: true
Size: 230 Bytes
Versions: 1
Compression:
Stored size: 230 Bytes
Contents
require 'syntax_finder' # Count up all `if` statements and `then` keywords. class IfThenFinder < SyntaxFinder def look node if node.type == :if_node inc :if inc :then if node.then_keyword_loc end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
syntax_finder-0.1.0 | samples/if_then_finder.rb |