Created
May 8, 2013 21:56
-
-
Save Tigraine/5543977 to your computer and use it in GitHub Desktop.
Tomdoc on Ruby 1.8.7-p371 and 1.9.3-p194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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