Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed the irb example to use simple-prompt mode, as suggested by Th…

…ibault Martin-Lagardette

git-svn-id: https://svn.macosforge.org/repository/ruby/MacRubyWebsite/trunk@4461 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit 3da9ad73a0157fd2d59e2609cf634d6632719208 1 parent c601a95
mattaimonetti@gmail.com authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 content/documentation/reading-an-mp3-with-macruby.txt
View
10 content/documentation/reading-an-mp3-with-macruby.txt
@@ -175,14 +175,14 @@ We accomplish this with a small "Run Script" build phase added to the bundle tar
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>.
Please sign in to comment.
Something went wrong with that request. Please try again.