YUKI Hiroshi
null+****@clear*****
Thu Feb 20 18:31:11 JST 2014
YUKI Hiroshi 2014-02-20 18:31:11 +0900 (Thu, 20 Feb 2014) New Revision: ab6549e0a46604399ecdf9a9ce7f332394f3467b https://github.com/droonga/fluent-plugin-droonga/commit/ab6549e0a46604399ecdf9a9ce7f332394f3467b Message: Remove needless module Removed files: lib/droonga/command.rb Deleted: lib/droonga/command.rb (+0 -36) 100644 =================================================================== --- lib/droonga/command.rb 2014-02-20 18:29:51 +0900 (684c866) +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2014 Droonga Project -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License version 2.1 as published by the Free Software Foundation. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -require "droonga/message_matcher" - -module Droonga - class Command - attr_reader :method_name - # @option options [Array] :pattern The pattern to be matched - # against message. If the pattern is matched to a message, - # the command will be applied. - # - # @see MessageMatcher - def initialize(method_name, options) - @method_name = method_name - @options = options - @matcher = MessageMatcher.new(@options[:pattern]) - end - - def match?(message) - @matcher.match?(message) - end - end -end -------------- next part -------------- HTML����������������������������... ダウンロード