Shin-ya Murakami
null****@okkez*****
2013年 12月 2日 (月) 21:01:44 JST
Shin-ya Murakami 2013-12-02 21:01:44 +0900 (Mon, 02 Dec 2013) New Revision: 808e9c0555f89414d33afdfa274d9a1a3fccde39 https://github.com/hiki/hiki/commit/808e9c0555f89414d33afdfa274d9a1a3fccde39 Merged 2eca36c: Merge pull request #49 from murashin/work1 Message: fix Plugin Error * fix "Plugin Error: undefined method `set_conf' for Hiki::Util:Module" when using {{recent(10)}}, {{toc}}, and etc. Modified files: hiki/util.rb Modified: hiki/util.rb (+5 -5) =================================================================== --- hiki/util.rb 2013-11-21 11:03:06 +0900 (cf08a1b) +++ hiki/util.rb 2013-12-02 21:01:44 +0900 (d8fea2e) @@ -105,7 +105,11 @@ module Hiki alias h escapeHTML alias unescape_html unescapeHTML - module_function :escape, :unescape, :escape_html, :h, :unescape_html + def set_conf(conf) + @conf = conf + end + + module_function :escape, :unescape, :escape_html, :h, :unescape_html, :set_conf def plugin_error(method, e) msg = "<strong>#{e.class} (#{h(e.message)}): #{h(method)}</strong><br>" @@ -295,10 +299,6 @@ EOS end end - def set_conf(conf) - @conf = conf - end - def shorten(str, len = 200) arr = str.split(//) if arr.length <= len - 2