Sha256: 0a633a51e2eb47b75b470dddaf589c5cea762ed7c0c0cedf5d50d6ecb57a1536
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
module Analyst module Entities class MethodCall < Entity def name name_node.to_s end def full_name name end def arguments @arguments ||= begin args = ast.children[2..-1] args.map { |arg| Analyst::Parser.process_node(arg, self) } end end # TODO: figure out how to resolve this to an Entity. we never want # to expose the AST to the outside. def target_node ast.children.first end private def name_node ast.children[1] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
analyst-0.14.2 | lib/analyst/entities/method_call.rb |