Black Bytes » parsing http://www.blackbytes.info Ruby Programming Tutorials Thu, 24 Sep 2015 17:01:59 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.8 Static Analysis in Ruby http://www.blackbytes.info/2015/08/static-analysis-in-ruby/ http://www.blackbytes.info/2015/08/static-analysis-in-ruby/#comments Sun, 02 Aug 2015 15:52:50 +0000 http://www.blackbytes.info/?p=2122 If you want to know something about your source code, like the name and line number of all your methods, what do you do? Your first idea might be to write a regexp for it, but what if I told you there is a better way? Static analysis is a technique you can use when […]

The post Static Analysis in Ruby appeared first on Black Bytes.

]]>
http://www.blackbytes.info/2015/08/static-analysis-in-ruby/feed/ 0
How to build a parser with Ruby http://www.blackbytes.info/2015/04/parsing-with-ruby/ http://www.blackbytes.info/2015/04/parsing-with-ruby/#comments Tue, 07 Apr 2015 19:44:40 +0000 http://www.blackbytes.info/?p=1727 Parsing is the art of making sense of a bunch of strings and converting them into something we can understand. You could just use regular expressions, but they are not always suitable for the job. For example, it is common knowledge that parsing HTML with regular expressions is probably not a good idea. In Ruby we […]

The post How to build a parser with Ruby appeared first on Black Bytes.

]]>
http://www.blackbytes.info/2015/04/parsing-with-ruby/feed/ 1
Parsing HTML in Ruby http://www.blackbytes.info/2012/01/parsing-html-in-ruby/ http://www.blackbytes.info/2012/01/parsing-html-in-ruby/#comments Sat, 14 Jan 2012 23:33:21 +0000 http://blackbytes.wordpress.com/?p=16 If you ever tried to write a scrapping tool you probably had to deal with parsing html. This task can be a bit difficult if you don’t have the right tools. Ruby has this wonderful library called Nokogiri, which makes html parsing a walk in the park. Let’s see some examples. First install the nokogiri […]

The post Parsing HTML in Ruby appeared first on Black Bytes.

]]>
http://www.blackbytes.info/2012/01/parsing-html-in-ruby/feed/ 0