aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2006-12-05 17:33:18 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2006-12-05 17:33:18 +0000
commit688a2ab17e674081307977b5f39e4eeda0236cb4 (patch)
tree4f908ab87753b4a3981baa2409150949e863f38e
parentbf7e76ce8c51cb787346d5cfbc114c0a3b77a949 (diff)
downloadpaludis-688a2ab17e674081307977b5f39e4eeda0236cb4.tar.gz
paludis-688a2ab17e674081307977b5f39e4eeda0236cb4.tar.xz
Fix PwP ruby example.
-rw-r--r--doc/examples/pwp_basic_ruby_app.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/pwp_basic_ruby_app.rb b/doc/examples/pwp_basic_ruby_app.rb
index 630a0f2..0e4dda2 100644
--- a/doc/examples/pwp_basic_ruby_app.rb
+++ b/doc/examples/pwp_basic_ruby_app.rb
@@ -3,12 +3,12 @@
require 'Paludis'
-packages = Paludis::DefaultEnvironment::instance.package_database.query(
+packages = Paludis::DefaultEnvironment.instance.package_database.query(
"app-editors/vim", Paludis::InstallState::InstalledOnly)
if packages.empty?
puts "Vim is not installed"
else
- puts "Vim " + packages.last.version + " is installed"
+ puts "Vim " + packages.last.version.to_s + " is installed"
end