Revision: 4461 http://trac.macosforge.org/projects/ruby/changeset/4461 Author: mattaimonetti@gmail.com Date: 2010-08-24 09:14:21 -0700 (Tue, 24 Aug 2010) Log Message: ----------- Changed the irb example to use simple-prompt mode, as suggested by Thibault Martin-Lagardette Modified Paths: -------------- MacRubyWebsite/trunk/content/documentation/reading-an-mp3-with-macruby.txt Modified: MacRubyWebsite/trunk/content/documentation/reading-an-mp3-with-macruby.txt =================================================================== --- MacRubyWebsite/trunk/content/documentation/reading-an-mp3-with-macruby.txt 2010-08-24 16:14:19 UTC (rev 4460) +++ MacRubyWebsite/trunk/content/documentation/reading-an-mp3-with-macruby.txt 2010-08-24 16:14:21 UTC (rev 4461) @@ -175,14 +175,14 @@ Now we can build the target, and a file called "TagLib.bundle" should appear in the project root. Now from a terminal, we can quickly test out the end result using the "macirb" command-line Ruby interpreter run from inside the project directory: <% coderay :lang => 'ruby' do -%> -$ macirb -irb(main):001:0> require 'TagLibBundle' +$ macirb --simple-prompt +>> require 'TagLibBundle' => true -irb(main):002:0> tag_test = TagLib.alloc.initWithFileAtPath("/path/to/test.mp3") +>> tag_test = TagLib.alloc.initWithFileAtPath("/path/to/test.mp3") => #<TagLib:0x200090880> -irb(main):003:0> tag_test.title +>> tag_test.title => "This is the test MP3 title tag" -irb(main):004:0> +>> <% end %> Now that this is working, the rest of the tags can be added in a similar fashion. The final code for this example is available on GitHub from <a href="http://github.com/nickludlam/TagLib.framework">http://github.com/nickludlam/TagLib.framework</a>.