Skip to content

Instantly share code, notes, and snippets.

@Tigraine
Created May 8, 2013 21:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Tigraine/5543977 to your computer and use it in GitHub Desktop.
Tomdoc on Ruby 1.8.7-p371 and 1.9.3-p194
daniel@tigraine in ~
o tomdoc -v
TomDoc v0.2.5
daniel@tigraine in ~
o gem unpack tomdoc
Unpacked gem: '/home/daniel/tomdoc-0.2.5'
daniel@tigraine in ~
o tomdoc tomdoc-0.2.5/lib/tomdoc/source_parser.rb
--------------------------------------------------------------------------------
TomDoc::SourceParser.parse(text)
Converts Ruby code into a data structure.
text - A String of Ruby code.
Returns a Hash with each key a namespace and each value another
Hash or a TomDoc::Scope.
o tomdoc -t ~/tomdoc-0.2.5/lib/tomdoc/source_parser.rb
[:module,
:TomDoc,
"",
[:class,
:SourceParser,
"",
[:cmethod,
:parse,
"# Converts Ruby code into a data structure.\n#\n# text - A String of Ruby code.\n#\n# Returns a Hash with each key a namespace and each value another\n# Hash or a TomDoc::Scope.\n",
[:text]]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment