Revision 378df927
Added by Marc Dequènes about 15 years ago
- ID 378df9272500721acd94cd24729f1352c80500ee
lib/ldap_shadows/display_utils.rb | ||
---|---|---|
item_list.each do |item|
|
||
str = item.human_name
|
||
str += " [#{item.name}]" if options[:handles]
|
||
str += ": #{item.description}" unless item.description.empty?
|
||
str += ": #{item.human_description}" unless item.human_description.empty?
|
||
puts str
|
||
end
|
||
end
|
lib/ldap_shadows/object.rb | ||
---|---|---|
return ""
|
||
end
|
||
|
||
def description
|
||
def human_description
|
||
attr_list = ['description']
|
||
attr_list.unshift(self.class.presentation[:desc_attribute]) if self.class.presentation.has_key?(:desc_attribute)
|
||
attr_list.each do |attr|
|
Also available in: Unified diff
[fix] renamed object description() method which conflicted with the quite common attribute of the same name