class Analyst::Entities::Root

Public Instance Methods

contents() click to toggle source
# File lib/analyst/entities/root.rb, line 17
def contents
  @contents ||= actual_contents.map do |child|
    # skip top-level CodeBlocks
    child.is_a?(Entities::CodeBlock) ? child.contents : child
  end.flatten
end
full_name() click to toggle source
# File lib/analyst/entities/root.rb, line 9
def full_name
  ""
end
inspect() click to toggle source
# File lib/analyst/entities/root.rb, line 13
def inspect
  "\#<#{self.class}>"
end

Private Instance Methods

actual_contents() click to toggle source
# File lib/analyst/entities/root.rb, line 26
def actual_contents
  @actual_contents ||= process_nodes(ast.children)
end