#5 ✓resolved
jugyo

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

Reported by jugyo | January 14th, 2009 @ 12:21 PM | in ver.1.0

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

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

どうですかね?

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


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

もしくは


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

(こっちのほうが好み)

Comments and changes to this ticket

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.

Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Termtter is a terminal based Twitter client

People watching this ticket

Pages