aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-22 23:23:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-22 23:23:34 +0000
commitc05f56916407d1730903472718fed9576bd214c9 (patch)
tree4ee1d0cc171813a37e889e15acedaeca3d3aa50e /doc/api/ruby
parentd145928e6b0283eb9816d34332d4d062b21598b3 (diff)
downloadpaludis-c05f56916407d1730903472718fed9576bd214c9.tar.gz
paludis-c05f56916407d1730903472718fed9576bd214c9.tar.xz
Don't store keys, IDs in masks
Diffstat (limited to 'doc/api/ruby')
-rw-r--r--doc/api/ruby/example_mask.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/ruby/example_mask.rb b/doc/api/ruby/example_mask.rb
index e63aa9207..d8724db8a 100644
--- a/doc/api/ruby/example_mask.rb
+++ b/doc/api/ruby/example_mask.rb
@@ -32,16 +32,16 @@ ids.each do | id |
puts " Class: ".ljust(31) + 'UserMask'
elsif mask.kind_of? UnacceptedMask
puts " Class: ".ljust(31) + 'UnacceptedMask'
- puts " Unaccepted key: ".ljust(31) + mask.unaccepted_key.raw_name unless mask.unaccepted_key.nil?
+ puts " Unaccepted key: ".ljust(31) + mask.unaccepted_key_name
elsif mask.kind_of? RepositoryMask
puts " Class: ".ljust(31) + 'RepositoryMask'
- puts " Mask key: ".ljust(31) + mask.mask_key.raw_name unless mask.mask_key.nil?
+ puts " Mask key: ".ljust(31) + mask.mask_key_name
elsif mask.kind_of? UnsupportedMask
puts " Class: ".ljust(31) + 'UnsupportedMask'
puts " Explanation: ".ljust(31) + mask.explanation
elsif mask.kind_of? AssociationMask
puts " Class: ".ljust(31) + 'AssociationMask'
- puts " Associated package: ".ljust(31) + mask.associated_package.to_s unless mask.associated_package.nil?
+ puts " Associated package: ".ljust(31) + mask.associated_package_spec.to_s
else
puts " Class: ".ljust(31) + 'Unknown'
end