Sha256: b2bf4c0e4722506c68b0fe9984c2ee148dae9581f5c6d62d16624c3cb8de3787
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
class AST2Dot class NodeLabel def self.label(node) case node.type when :FCALL "%s\\nmethod_id: %p" % [node.type, node.children[0]] when :OPCALL "%s\\nmethod_id: %p" % [node.type, node.children[1]] when :LIT "%s\\nvalue: %p" % [node.type, node.children[0]] else node.type end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ast2dot-0.1.1 | lib/ast2dot/node_label.rb |