YUKI Hiroshi
null+****@clear*****
Thu Feb 20 18:29:51 JST 2014
YUKI Hiroshi 2014-02-20 18:29:51 +0900 (Thu, 20 Feb 2014) New Revision: 84edddc952ce7cec9876d025183d52fe5489c6da https://github.com/droonga/fluent-plugin-droonga/commit/84edddc952ce7cec9876d025183d52fe5489c6da Message: Remove needless module Removed files: lib/droonga/command_repository.rb Deleted: lib/droonga/command_repository.rb (+0 -33) 100644 =================================================================== --- lib/droonga/command_repository.rb 2014-02-20 18:25:19 +0900 (ec39fc1) +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (C) 2013-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 - -module Droonga - class CommandRepository - attr_reader :commands - def initialize - @commands = [] - end - - def register(command) - @commands << command - end - - def find(message) - @commands.find do |command| - command.match?(message) - end - end - end -end -------------- next part -------------- HTML����������������������������...Download