Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/proc_to_ast/parser_gem.rb
Instance Method Summary collapse
-
#to_ast ⇒ Parser::AST::Node
Proc AST.
- #to_raw_source(highlight: false) ⇒ Object
-
#to_source(highlight: false) ⇒ String
Proc source code.
Instance Method Details
#to_ast ⇒ Parser::AST::Node
Returns Proc AST.
93 94 95 96 97 |
# File 'lib/proc_to_ast/parser_gem.rb', line 93 def to_ast filename, linenum = source_location parser = ProcToAst::Parser.new parser.parse(filename, linenum) end |