Permalink
Browse files

Added more documentation, this time for fix_method option

  • Loading branch information...
1 parent b0a9e47 commit 1a3c5fe6a03ade1d372b6891a6b73ce0a45ece07 Marcos Arias committed May 11, 2008
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/permalizer/permalink.rb
View
10 lib/permalizer/permalink.rb
@@ -38,6 +38,16 @@ def permalize
# The vale of this variable determines the fix method that String.permalize will use. The default is <tt>:us_ascii</tt>.
# Possible values are <tt>:iso_8859_1</tt> and <tt>:utf_8</tt>. *The class can be easily extendable to add more fix methods*
#
+ # module Permalink
+ # class Permalizer
+ # def my_custom_fix_method
+ # Iconv.(from, to).iconv @word
+ # end
+ # end
+ # end
+ #
+ # Permalink::Permalizer.fix_method = :my_custom_fix_method
+ #
# <tt>Permalizer.decompose_string</tt>
#
# Determines if the permalization must perform the special ActiveSupport method chars.decompose to fix some

0 comments on commit 1a3c5fe

Please sign in to comment.