Class YARD::SourceParser

Object
  |
  +--YARD::SourceParser

Responsible for parsing a source file into the namespace


Attributes

current_namespace [R, W]
file [R]

Constructor Summary

initialize

Public Class Method Summary

Object parse(content)
Object parse_string(content)

Public Instance Method Summary

Object current_namespace
      Returns the value of attribute current_namespace .
Object current_namespace=(value)
      Sets the attribute current_namespace .
Object file
      Returns the value of attribute file .
Object file=(value)
      Sets the attribute file .
Object parse(content = __FILE__)
      Creates a new SourceParser that parses a file and returns .

Public Class Method Details

parse

public Object self.parse(content)


parse_string

public Object self.parse_string(content)


Public Instance Method Details

current_namespace

public Object current_namespace

Returns the value of attribute current_namespace


current_namespace=

public Object current_namespace=(value)

Sets the attribute current_namespace

Parameters:
value - the value to set the attribute current_namespace to.

file

public Object file

Returns the value of attribute file


file=

public Object file=(value)

Sets the attribute file

Parameters:
value - the value to set the attribute file to.

parse

public Object parse(content = __FILE__)

Creates a new SourceParser that parses a file and returns analysis information about it.

Parameters:
[String, TokenList, StatementList] content - the source file to parse