ruby --dump

  1. Очевидно човек може да прави така:

    > ruby --dump insns -e '$10'
    == disasm: <RubyVM::InstructionSequence:<main>@-e>======================
    0000 trace            1                                               (   1)
    0002 getspecial       1, 20
    0005 leave
    
    > ruby --dump parsetree_with_comment -e '$10'
    ###########################################################
    ## Do NOT use this node dump for any purpose other than  ##
    ## debug and research.  Compatibility is not guaranteed. ##
    ###########################################################
    
    # @ NODE_SCOPE (line: 1)
    # | # new scope
    # | # format: [nd_tbl]: local table, [nd_args]: arguments, [nd_body]: body
    # +- nd_tbl (local table): (empty)
    # +- nd_args (arguments):
    # |   (null node)
    # +- nd_body (body):
    #     @ NODE_NTH_REF (line: 1)
    #     | # nth special variable reference
    #     | # format: $[nd_nth]
    #     | # example: $1, $2, ..
    #     +- nd_nth (variable): $10
    

    $1, $2, ..., $32767

Трябва да сте влезли в системата, за да може да отговаряте на теми.