Sha256: 017c6b5ce0b6d92934d9e326341b53c033fe249e98d4c048104db81196736926
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module Analyst module Entities class VariableAssignment < Entity handles_node :lvasgn def name name_node.to_s end def full_name (scope.nil? ? parent.full_name : scope.full_name) + '::' + name end def scope @scope ||= process_node(ast.children.first) end def value @value ||= process_nodes(ast.children) end private def name_node ast.children[1].children.first end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
analyst-1.2.4 | lib/analyst/entities/variable_assignment.rb |
analyst-1.2.3 | lib/analyst/entities/variable_assignment.rb |