Method: MotionBlender::Source#children

Defined in:
lib/motion_blender/source.rb

#childrenObject



49
50
51
52
53
54
55
# File 'lib/motion_blender/source.rb', line 49

def children
  @children ||=
    @ast
    .try(:children).to_a
    .select { |ast| ast.nil? || ast.is_a?(::Parser::AST::Node) }
    .map { |ast| Source.new(ast: ast, parent: self) }
end