Sha256: 08c49367aaf3f6ee00239a0dd730391ef4ca3158b6ef1c7a1a9ac46a07a0c065
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
module Analyst module Entities class MethodCall < Entity handles_node :send def name name_node.to_s end def full_name name end def arguments @arguments ||= process_nodes(ast.children[2..-1]) end private def contents (arguments + [target]).compact end def target_node ast.children.first end def target @target ||= process_node(target_node) end def name_node ast.children[1] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
analyst-1.2.2 | lib/analyst/entities/method_call.rb |
analyst-1.2.1 | lib/analyst/entities/method_call.rb |
analyst-1.2.0 | lib/analyst/entities/method_call.rb |