Class ripper ruby 1.9.3 www.ruby-doc.org2015-06-19http://www.ruby-doc.org/stdlib-1.9.3/libdoc/ripper/rdoc/ripper.html tstring content heredoc end , 1 string n File ripper lib ripper lexer.rb, line 84 def Ripper.slice src, pattern, n 0 if m token match src, pattern then m.string n else nil end end tokenize src, filename. , lineno 1 click to toggle source Tokenizes the Ruby program and returns an array of strings. p Ripper.tokenize def m a nil end def , , m , , a , , , nil , , end File ripper lib ripper lexer.rb, line 20 def Ripper.tokenize src,
The joke is on us how ruby 1.9 supports the goto statement. pat shaughnessy [..] patshaughnessy.net2013-03-19⚑enterprise http://patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement tstring content, The Ruby core team is playing a joke on us. , 2, 6 ,.. etc.. To make this easier to understand, here s a graphical representation of the syntax tree for part of the joke.rb script This is just part of the syntax tree for my joke.rb file. Notice that in the node on the left, representing the call to label loop , I ve included the constant NODE FCALL used internally by the Ruby C source code to identify function
The joke is on us how ruby 1.9 supports the goto statement. pat shaughnessy [..] patshaughnessy.net2013-03-19⚑enterprisehttp://patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement tstring content, The Ruby core team is playing a joke on us. , 2, 6 ,.. etc.. To make this easier to understand, here s a graphical representation of the syntax tree for part of the joke.rb script This is just part of the syntax tree for my joke.rb file. Notice that in the node on the left, representing the call to label loop , I ve included the constant NODE FCALL used internally by the Ruby C source code to identify function