Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

filter を plugin として定義するようにしたい

#5

これは意見が分かれるかもしれないんですが、filter も plugin として定義するようにしたいです。 理由は以下。

  • filter もプラグインみたいなもの
  • 統一したほうがユーザーが混乱しにくい
  • プログラムも多少すっきりすると思う

どうですかね?

定義のしかたは以下のような感じですかね。


add_filter :name => :foo do |statuses|
   ...
end

もしくは


add_hook :filter, :name => :foo do |statuses|
   ...
end

(こっちのほうが好み)

Reported by jugyo · January 14th, 2009 @ 12:21 PM

State: resolved
Milestone: ver.1.0
Assigned to: jugyo jugyo

Activity

  1. jugyo
    jugyo
    • Milestone set to ver.1.0

    March 11th, 2009 @ 10:20 AM

  2. jugyo
    jugyo
    • Assigned user set to jugyo

    March 11th, 2009 @ 10:35 AM

  3. jugyo
    jugyo
    • State changed from new to resolved

    filter も plugin('foo_filter') みたいな感じで読み込む用にした。

    filter メソッドは削除。

    March 15th, 2009 @ 09:15 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.